Convert Spellcheck host MessageFilter IPC to mojo
Remove chrome/browser/spellchecker/spellcheck_message_filter and its
unittest. Replace it with a mojo implementation of same that exposes
an interface to renderers for calling spell-check-host API available
in the browser process:
- RequestDictionary, NotifyChecked, CallSpellingService.
Update browser tests / unit tests to use the new mojo implementation
and add a mojom::SpellCheckHost unit test:
- chrome_site_per_process_browsertest.cc
- spellcheck_service_browsertest.cc
- spellcheck_provider_hunspell_unittest.cc
- spell_check_host_impl_unittest.cc
Bug: 714480
Change-Id: I7e6a46245a908fe4600b1d3d86f2d9dc884f79ea
Reviewed-on: https://chromium-review.googlesource.com/505648
Reviewed-by: Mike West <[email protected]>
Reviewed-by: Jochen Eisinger <[email protected]>
Reviewed-by: Sam McNally <[email protected]>
Reviewed-by: Rouslan Solomakhin <[email protected]>
Reviewed-by: Johan Tibell <[email protected]>
Commit-Queue: Noel Gordon <[email protected]>
Cr-Commit-Position: refs/heads/master@{#475395}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index b259642..74fb59d 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -2025,14 +2025,14 @@
}
if (enable_spellcheck) {
sources += [
+ "spellchecker/spell_check_host_impl.cc",
+ "spellchecker/spell_check_host_impl.h",
"spellchecker/spellcheck_custom_dictionary.cc",
"spellchecker/spellcheck_custom_dictionary.h",
"spellchecker/spellcheck_factory.cc",
"spellchecker/spellcheck_factory.h",
"spellchecker/spellcheck_hunspell_dictionary.cc",
"spellchecker/spellcheck_hunspell_dictionary.h",
- "spellchecker/spellcheck_message_filter.cc",
- "spellchecker/spellcheck_message_filter.h",
"spellchecker/spellcheck_message_filter_platform_mac.cc",
"spellchecker/spellcheck_service.cc",
"spellchecker/spellcheck_service.h",