Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h

Issue 1263423006: Rename spellchecker preprocessor flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Notify listeners that the dictionary has been initialized. 131 // Notify listeners that the dictionary has been initialized.
132 void InformListenersOfInitialization(); 132 void InformListenersOfInitialization();
133 133
134 // Notify listeners that the dictionary download failed. 134 // Notify listeners that the dictionary download failed.
135 void InformListenersOfDownloadFailure(); 135 void InformListenersOfDownloadFailure();
136 136
137 // The language of the dictionary file. 137 // The language of the dictionary file.
138 std::string language_; 138 std::string language_;
139 139
140 // Whether to use the platform spellchecker instead of Hunspell. 140 // Whether to use the platform spellchecker instead of Hunspell.
141 bool use_platform_spellchecker_; 141 bool use_browser_spellchecker_;
142 142
143 // Used for downloading the dictionary file. SpellcheckHunspellDictionary does 143 // Used for downloading the dictionary file. SpellcheckHunspellDictionary does
144 // not hold a reference, and it is only valid to use it on the UI thread. 144 // not hold a reference, and it is only valid to use it on the UI thread.
145 net::URLRequestContextGetter* request_context_getter_; 145 net::URLRequestContextGetter* request_context_getter_;
146 146
147 // Used for downloading the dictionary file. 147 // Used for downloading the dictionary file.
148 scoped_ptr<net::URLFetcher> fetcher_; 148 scoped_ptr<net::URLFetcher> fetcher_;
149 149
150 SpellcheckService* spellcheck_service_; 150 SpellcheckService* spellcheck_service_;
151 151
152 // Observers of Hunspell dictionary events. 152 // Observers of Hunspell dictionary events.
153 base::ObserverList<Observer> observers_; 153 base::ObserverList<Observer> observers_;
154 154
155 // Status of the dictionary download. 155 // Status of the dictionary download.
156 DownloadStatus download_status_; 156 DownloadStatus download_status_;
157 157
158 // Dictionary file path and descriptor. 158 // Dictionary file path and descriptor.
159 DictionaryFile dictionary_file_; 159 DictionaryFile dictionary_file_;
160 160
161 base::WeakPtrFactory<SpellcheckHunspellDictionary> weak_ptr_factory_; 161 base::WeakPtrFactory<SpellcheckHunspellDictionary> weak_ptr_factory_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(SpellcheckHunspellDictionary); 163 DISALLOW_COPY_AND_ASSIGN(SpellcheckHunspellDictionary);
164 }; 164 };
165 165
166 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ 166 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698