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 #include "chrome/browser/spellcheck_host_impl.h" | 5 #include "chrome/browser/spellcheck_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/string_split.h" | 12 #include "base/string_split.h" |
13 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "chrome/browser/spellcheck_host_observer.h" | 15 #include "chrome/browser/spellcheck_host_observer.h" |
16 #include "chrome/browser/spellchecker_platform_engine.h" | 16 #include "chrome/browser/spellchecker_platform_engine.h" |
17 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
18 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
19 #include "chrome/common/net/url_request_context_getter.h" | 19 #include "chrome/common/net/url_request_context_getter.h" |
20 #include "chrome/common/notification_service.h" | |
21 #include "chrome/common/spellcheck_common.h" | 20 #include "chrome/common/spellcheck_common.h" |
| 21 #include "content/common/notification_service.h" |
22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
23 #include "third_party/hunspell/google/bdict.h" | 23 #include "third_party/hunspell/google/bdict.h" |
24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
25 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
26 #include "base/metrics/histogram.h" | 26 #include "base/metrics/histogram.h" |
27 #endif | 27 #endif |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 FilePath GetFirstChoiceFilePath(const std::string& language) { | 31 FilePath GetFirstChoiceFilePath(const std::string& language) { |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 return custom_words_.back(); | 337 return custom_words_.back(); |
338 } | 338 } |
339 | 339 |
340 const std::string& SpellCheckHostImpl::GetLanguage() const { | 340 const std::string& SpellCheckHostImpl::GetLanguage() const { |
341 return language_; | 341 return language_; |
342 } | 342 } |
343 | 343 |
344 bool SpellCheckHostImpl::IsUsingPlatformChecker() const { | 344 bool SpellCheckHostImpl::IsUsingPlatformChecker() const { |
345 return use_platform_spellchecker_; | 345 return use_platform_spellchecker_; |
346 } | 346 } |
OLD | NEW |