OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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.h" | 5 #include "chrome/browser/spellcheck_host.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/prefs/pref_member.h" |
14 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
15 #include "chrome/browser/pref_member.h" | |
16 #include "chrome/browser/spellcheck_host_observer.h" | 16 #include "chrome/browser/spellcheck_host_observer.h" |
17 #include "chrome/browser/spellchecker_platform_engine.h" | 17 #include "chrome/browser/spellchecker_platform_engine.h" |
18 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/common/chrome_paths.h" | 19 #include "chrome/common/chrome_paths.h" |
20 #include "chrome/common/net/url_request_context_getter.h" | 20 #include "chrome/common/net/url_request_context_getter.h" |
21 #include "chrome/common/notification_service.h" | 21 #include "chrome/common/notification_service.h" |
22 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
23 #include "chrome/common/spellcheck_common.h" | 23 #include "chrome/common/spellcheck_common.h" |
24 #include "googleurl/src/gurl.h" | 24 #include "googleurl/src/gurl.h" |
25 | 25 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 ChromeThread::PostTask(ChromeThread::UI, FROM_HERE, | 298 ChromeThread::PostTask(ChromeThread::UI, FROM_HERE, |
299 NewRunnableMethod(this, | 299 NewRunnableMethod(this, |
300 &SpellCheckHost::InformObserverOfInitialization)); | 300 &SpellCheckHost::InformObserverOfInitialization)); |
301 return; | 301 return; |
302 } | 302 } |
303 } | 303 } |
304 | 304 |
305 data_.clear(); | 305 data_.clear(); |
306 Initialize(); | 306 Initialize(); |
307 } | 307 } |
OLD | NEW |