| 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 "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void InitForAllRenderers(); | 114 void InitForAllRenderers(); |
| 115 | 115 |
| 116 // Reacts to a change in user preferences on whether auto-spell-correct should | 116 // Reacts to a change in user preferences on whether auto-spell-correct should |
| 117 // be enabled. | 117 // be enabled. |
| 118 void OnEnableAutoSpellCorrectChanged(); | 118 void OnEnableAutoSpellCorrectChanged(); |
| 119 | 119 |
| 120 // Reacts to a change in user preference on which language should be used for | 120 // Reacts to a change in user preference on which language should be used for |
| 121 // spellchecking. | 121 // spellchecking. |
| 122 void OnSpellCheckDictionaryChanged(); | 122 void OnSpellCheckDictionaryChanged(); |
| 123 | 123 |
| 124 // Notification handler for changes to prefs::kSpellCheckUseSpellingService. |
| 125 void OnUseSpellingServiceChanged(); |
| 126 |
| 124 PrefChangeRegistrar pref_change_registrar_; | 127 PrefChangeRegistrar pref_change_registrar_; |
| 125 content::NotificationRegistrar registrar_; | 128 content::NotificationRegistrar registrar_; |
| 126 | 129 |
| 127 // A pointer to the profile which this service refers to. | 130 // A pointer to the profile which this service refers to. |
| 128 Profile* profile_; | 131 Profile* profile_; |
| 129 | 132 |
| 130 scoped_ptr<SpellCheckHostMetrics> metrics_; | 133 scoped_ptr<SpellCheckHostMetrics> metrics_; |
| 131 | 134 |
| 132 scoped_ptr<SpellcheckCustomDictionary> custom_dictionary_; | 135 scoped_ptr<SpellcheckCustomDictionary> custom_dictionary_; |
| 133 | 136 |
| 134 scoped_ptr<SpellcheckHunspellDictionary> hunspell_dictionary_; | 137 scoped_ptr<SpellcheckHunspellDictionary> hunspell_dictionary_; |
| 135 | 138 |
| 136 base::WeakPtrFactory<SpellcheckService> weak_ptr_factory_; | 139 base::WeakPtrFactory<SpellcheckService> weak_ptr_factory_; |
| 137 | 140 |
| 138 DISALLOW_COPY_AND_ASSIGN(SpellcheckService); | 141 DISALLOW_COPY_AND_ASSIGN(SpellcheckService); |
| 139 }; | 142 }; |
| 140 | 143 |
| 141 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_ | 144 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_ |
| OLD | NEW |