| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HOST_IMPL_H_ | 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ |
| 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ | 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 void InformProfileOfInitializationWithCustomWords( | 85 void InformProfileOfInitializationWithCustomWords( |
| 86 CustomWordList* custom_words); | 86 CustomWordList* custom_words); |
| 87 | 87 |
| 88 // An alternative version of InformProfileOfInitializationWithCustomWords() | 88 // An alternative version of InformProfileOfInitializationWithCustomWords() |
| 89 // which implies empty |custom_words|. | 89 // which implies empty |custom_words|. |
| 90 void InformProfileOfInitialization(); | 90 void InformProfileOfInitialization(); |
| 91 | 91 |
| 92 // If |dictionary_file_| is missing, we attempt to download it. | 92 // If |dictionary_file_| is missing, we attempt to download it. |
| 93 void DownloadDictionary(); | 93 void DownloadDictionary(); |
| 94 | 94 |
| 95 // Load a custom dictionary from disk. |
| 96 void LoadCustomDictionary(CustomWordList* custom_words); |
| 97 |
| 95 // Write a custom dictionary addition to disk. | 98 // Write a custom dictionary addition to disk. |
| 96 void WriteWordToCustomDictionary(const std::string& word); | 99 void WriteWordToCustomDictionary(const std::string& word); |
| 97 | 100 |
| 98 // Returns a metrics counter associated with this object, | 101 // Returns a metrics counter associated with this object, |
| 99 // or null when metrics recording is disabled. | 102 // or null when metrics recording is disabled. |
| 100 virtual SpellCheckHostMetrics* GetMetrics() const; | 103 virtual SpellCheckHostMetrics* GetMetrics() const; |
| 101 | 104 |
| 102 // Returns true if the dictionary is ready to use. | 105 // Returns true if the dictionary is ready to use. |
| 103 virtual bool IsReady() const; | 106 virtual bool IsReady() const; |
| 104 | 107 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 161 |
| 159 NotificationRegistrar registrar_; | 162 NotificationRegistrar registrar_; |
| 160 | 163 |
| 161 // An optional metrics counter given by the constructor. | 164 // An optional metrics counter given by the constructor. |
| 162 SpellCheckHostMetrics* metrics_; | 165 SpellCheckHostMetrics* metrics_; |
| 163 | 166 |
| 164 DISALLOW_COPY_AND_ASSIGN(SpellCheckHostImpl); | 167 DISALLOW_COPY_AND_ASSIGN(SpellCheckHostImpl); |
| 165 }; | 168 }; |
| 166 | 169 |
| 167 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ | 170 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_IMPL_H_ |
| OLD | NEW |