Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3301)

Unified Diff: chrome/browser/spellcheck_message_filter.h

Issue 6392045: Integrating Mac OS Grammar checker into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to ToT Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/spellcheck_message_filter.h
diff --git a/chrome/browser/spellcheck_message_filter.h b/chrome/browser/spellcheck_message_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..d20ff3c0b23a0c519a2583c321d00c9ea5a93949
--- /dev/null
+++ b/chrome/browser/spellcheck_message_filter.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SPELLCHECK_MESSAGE_FILTER_H_
+#define CHROME_BROWSER_SPELLCHECK_MESSAGE_FILTER_H_
+
+#include "chrome/browser/browser_message_filter.h"
+
+// A message filter implementation that receives
+// the platform spell checker requests from SpellCheckProvider.
+class SpellCheckMessageFilter : public BrowserMessageFilter {
+ public:
+ SpellCheckMessageFilter();
+ ~SpellCheckMessageFilter();
+
+ // BrowserMessageFilter implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok);
+
+ private:
+ void OnPlatformRequestTextCheck(int route_id,
+ int identifier,
+ int document_tag,
+ const string16& text);
+};
+
+#endif // CHROME_BROWSER_SPELLCHECK_MESSAGE_FILTER_H_
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/browser/spellcheck_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698