OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_H__ | 5 #ifndef CHROME_BROWSER_SPELLCHECKER_H__ |
6 #define CHROME_BROWSER_SPELLCHECKER_H__ | 6 #define CHROME_BROWSER_SPELLCHECKER_H__ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #if defined(OS_WIN) | |
13 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
14 #else | |
15 // TODO(port): remove scaffolding, use profile.h for both POSIX and WIN. | |
16 #include "chrome/common/temp_scaffolding_stubs.h" | |
17 #endif | |
18 #include "chrome/browser/spellcheck_worditerator.h" | 13 #include "chrome/browser/spellcheck_worditerator.h" |
19 #include "chrome/common/l10n_util.h" | 14 #include "chrome/common/l10n_util.h" |
20 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
21 #include "chrome/common/pref_member.h" | 16 #include "chrome/common/pref_member.h" |
22 | 17 |
23 #include "base/task.h" | 18 #include "base/task.h" |
24 #include "unicode/uscript.h" | 19 #include "unicode/uscript.h" |
25 | 20 |
26 class Hunspell; | 21 class Hunspell; |
27 class PrefService; | 22 class PrefService; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // Used for generating callbacks to spellchecker, since spellchecker is a | 168 // Used for generating callbacks to spellchecker, since spellchecker is a |
174 // non-reference counted object. The callback is generated by generating tasks | 169 // non-reference counted object. The callback is generated by generating tasks |
175 // using NewRunableMethod on these objects. | 170 // using NewRunableMethod on these objects. |
176 ScopedRunnableMethodFactory<SpellChecker> dic_download_state_changer_factory_; | 171 ScopedRunnableMethodFactory<SpellChecker> dic_download_state_changer_factory_; |
177 | 172 |
178 DISALLOW_COPY_AND_ASSIGN(SpellChecker); | 173 DISALLOW_COPY_AND_ASSIGN(SpellChecker); |
179 }; | 174 }; |
180 | 175 |
181 #endif // #ifndef CHROME_BROWSER_SPELLCHECKER_H__ | 176 #endif // #ifndef CHROME_BROWSER_SPELLCHECKER_H__ |
182 | 177 |
OLD | NEW |