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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_ |
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_ | 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 bool UnloadExternalDictionary(const std::string& /* path */); | 123 bool UnloadExternalDictionary(const std::string& /* path */); |
124 | 124 |
125 // NotificationProfile implementation. | 125 // NotificationProfile implementation. |
126 void Observe(int type, | 126 void Observe(int type, |
127 const content::NotificationSource& source, | 127 const content::NotificationSource& source, |
128 const content::NotificationDetails& details) override; | 128 const content::NotificationDetails& details) override; |
129 | 129 |
130 // SpellcheckCustomDictionary::Observer implementation. | 130 // SpellcheckCustomDictionary::Observer implementation. |
131 void OnCustomDictionaryLoaded() override; | 131 void OnCustomDictionaryLoaded() override; |
132 void OnCustomDictionaryChanged( | 132 void OnCustomDictionaryChanged( |
133 const SpellcheckCustomDictionary::Change& dictionary_change) override; | 133 const SpellcheckCustomDictionary::Change& change) override; |
134 | 134 |
135 // SpellcheckHunspellDictionary::Observer implementation. | 135 // SpellcheckHunspellDictionary::Observer implementation. |
136 void OnHunspellDictionaryInitialized(const std::string& language) override; | 136 void OnHunspellDictionaryInitialized(const std::string& language) override; |
137 void OnHunspellDictionaryDownloadBegin(const std::string& language) override; | 137 void OnHunspellDictionaryDownloadBegin(const std::string& language) override; |
138 void OnHunspellDictionaryDownloadSuccess( | 138 void OnHunspellDictionaryDownloadSuccess( |
139 const std::string& language) override; | 139 const std::string& language) override; |
140 void OnHunspellDictionaryDownloadFailure( | 140 void OnHunspellDictionaryDownloadFailure( |
141 const std::string& language) override; | 141 const std::string& language) override; |
142 | 142 |
143 private: | 143 private: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 std::vector<std::unique_ptr<SpellcheckHunspellDictionary>> | 177 std::vector<std::unique_ptr<SpellcheckHunspellDictionary>> |
178 hunspell_dictionaries_; | 178 hunspell_dictionaries_; |
179 | 179 |
180 base::WeakPtrFactory<SpellcheckService> weak_ptr_factory_; | 180 base::WeakPtrFactory<SpellcheckService> weak_ptr_factory_; |
181 | 181 |
182 DISALLOW_COPY_AND_ASSIGN(SpellcheckService); | 182 DISALLOW_COPY_AND_ASSIGN(SpellcheckService); |
183 }; | 183 }; |
184 | 184 |
185 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_ | 185 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_ |
OLD | NEW |