OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
please use gerrit instead
2015/03/05 21:42:51
2015
Peter Wen
2015/03/06 16:09:09
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_DICTIONARY_EVENT_ROUTER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_DICTIONARY_EVENT_ROUTER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | |
12 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h" | |
13 | |
14 namespace content { | |
15 class BrowserContext; | |
16 } | |
17 | |
18 namespace chromeos { | |
19 | |
20 // Event router class for custom dictionary events. | |
21 class ExtensionDictionaryEventRouter | |
22 : public SpellcheckCustomDictionary::Observer { | |
23 public: | |
24 explicit ExtensionDictionaryEventRouter(content::BrowserContext* context); | |
25 virtual ~ExtensionDictionaryEventRouter(); | |
please use gerrit instead
2015/03/05 21:42:52
I think we've changed from "vurtual ~ClassName();"
Peter Wen
2015/03/06 16:09:09
Since this class only inherits from Observer, and
please use gerrit instead
2015/03/06 17:54:34
SGTM.
| |
26 | |
27 // SpellcheckCustomDictionary::Observer implementation. | |
28 void OnCustomDictionaryLoaded() override; | |
29 void OnCustomDictionaryChanged( | |
30 const SpellcheckCustomDictionary::Change& dictionary_change) override; | |
31 | |
32 private: | |
33 content::BrowserContext* context_; | |
34 SpellcheckCustomDictionary* dictionary_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(ExtensionDictionaryEventRouter); | |
37 }; | |
38 | |
39 } // namespace chromeos | |
40 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_DICTIONARY_EVENT_ROUTER_H_ | |
OLD | NEW |