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

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: Adopted Carnitas approach, added tests. 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..b6b1c59036674aa6871a5451bc56057fe5dcb7c4
--- /dev/null
+++ b/chrome/browser/spellcheck_message_filter.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2010 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"
+
+namespace IPC {
+class Message;
jam 2011/02/17 18:36:59 nit: this forward declaration isn't necessary, bro
gmorrita 2011/02/18 01:08:01 Done.
+}
+
+class SpellCheckMessageFilter : public BrowserMessageFilter {
+ public:
+ SpellCheckMessageFilter();
+ ~SpellCheckMessageFilter();
+
+ // BrowserMessageFilter implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok);
+
+ void OnPlatformRequestTextCheck(int route_id,
+ int identifier,
+ int document_tag,
+ const string16& text);
+};
+
+#endif // CHROME_BROWSER_SPELLCHECK_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698