OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_MESSAGE_FILTER_PLATFORM_H_ | 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_MESSAGE_FILTER_PLATFORM_H_ |
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_MESSAGE_FILTER_PLATFORM_H_ | 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_MESSAGE_FILTER_PLATFORM_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
| 10 #include "base/macros.h" |
| 11 #include "build/build_config.h" |
10 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" | 12 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
11 #include "chrome/common/spellcheck_result.h" | 13 #include "chrome/common/spellcheck_result.h" |
12 #include "content/public/browser/browser_message_filter.h" | 14 #include "content/public/browser/browser_message_filter.h" |
13 | 15 |
14 class SpellCheckerSessionBridge; | 16 class SpellCheckerSessionBridge; |
15 | 17 |
16 // A message filter implementation that receives | 18 // A message filter implementation that receives |
17 // the platform-specific spell checker requests from SpellCheckProvider. | 19 // the platform-specific spell checker requests from SpellCheckProvider. |
18 class SpellCheckMessageFilterPlatform : public content::BrowserMessageFilter { | 20 class SpellCheckMessageFilterPlatform : public content::BrowserMessageFilter { |
19 public: | 21 public: |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 scoped_ptr<SpellCheckerSessionBridge> impl_; | 62 scoped_ptr<SpellCheckerSessionBridge> impl_; |
61 #endif | 63 #endif |
62 | 64 |
63 // A JSON-RPC client that calls the Spelling service in the background. | 65 // A JSON-RPC client that calls the Spelling service in the background. |
64 scoped_ptr<SpellingServiceClient> client_; | 66 scoped_ptr<SpellingServiceClient> client_; |
65 | 67 |
66 DISALLOW_COPY_AND_ASSIGN(SpellCheckMessageFilterPlatform); | 68 DISALLOW_COPY_AND_ASSIGN(SpellCheckMessageFilterPlatform); |
67 }; | 69 }; |
68 | 70 |
69 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_MESSAGE_FILTER_PLATFORM_H_ | 71 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_MESSAGE_FILTER_PLATFORM_H_ |
OLD | NEW |