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_HUNSPELL_DICTIONARY_H_ | 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ |
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ | 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ |
7 | 7 |
8 #include "chrome/browser/spellchecker/spellcheck_dictionary.h" | 8 #include "chrome/browser/spellchecker/spellcheck_dictionary.h" |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 virtual void OnHunspellDictionaryInitialized() = 0; | 35 virtual void OnHunspellDictionaryInitialized() = 0; |
36 | 36 |
37 // Dictionary download began. | 37 // Dictionary download began. |
38 virtual void OnHunspellDictionaryDownloadBegin() = 0; | 38 virtual void OnHunspellDictionaryDownloadBegin() = 0; |
39 | 39 |
40 // Dictionary download succeeded. | 40 // Dictionary download succeeded. |
41 virtual void OnHunspellDictionaryDownloadSuccess() = 0; | 41 virtual void OnHunspellDictionaryDownloadSuccess() = 0; |
42 | 42 |
43 // Dictionary download failed. | 43 // Dictionary download failed. |
44 virtual void OnHunspellDictionaryDownloadFailure() = 0; | 44 virtual void OnHunspellDictionaryDownloadFailure() = 0; |
| 45 |
| 46 protected: |
| 47 virtual ~Observer() { } |
45 }; | 48 }; |
46 | 49 |
47 // TODO(rlp): Passing in the host is very temporary. In the next CL this | 50 // TODO(rlp): Passing in the host is very temporary. In the next CL this |
48 // will be removed. | 51 // will be removed. |
49 SpellcheckHunspellDictionary( | 52 SpellcheckHunspellDictionary( |
50 Profile* profile, | 53 Profile* profile, |
51 const std::string& language, | 54 const std::string& language, |
52 net::URLRequestContextGetter* request_context_getter, | 55 net::URLRequestContextGetter* request_context_getter, |
53 SpellcheckService* spellcheck_service); | 56 SpellcheckService* spellcheck_service); |
54 virtual ~SpellcheckHunspellDictionary(); | 57 virtual ~SpellcheckHunspellDictionary(); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // Observers of Hunspell dictionary events. | 156 // Observers of Hunspell dictionary events. |
154 ObserverList<Observer> observers_; | 157 ObserverList<Observer> observers_; |
155 | 158 |
156 // Status of the dictionary download. | 159 // Status of the dictionary download. |
157 DownloadStatus download_status_; | 160 DownloadStatus download_status_; |
158 | 161 |
159 DISALLOW_COPY_AND_ASSIGN(SpellcheckHunspellDictionary); | 162 DISALLOW_COPY_AND_ASSIGN(SpellcheckHunspellDictionary); |
160 }; | 163 }; |
161 | 164 |
162 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ | 165 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ |
OLD | NEW |