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 #ifndef CHROME_BROWSER_SPELLCHECK_HOST_H_ | 5 #ifndef CHROME_BROWSER_SPELLCHECK_HOST_H_ |
6 #define CHROME_BROWSER_SPELLCHECK_HOST_H_ | 6 #define CHROME_BROWSER_SPELLCHECK_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 #include "base/scoped_ptr.h" |
14 #include "chrome/browser/chrome_thread.h" | 15 #include "chrome/browser/chrome_thread.h" |
15 #include "chrome/common/net/url_fetcher.h" | 16 #include "chrome/common/net/url_fetcher.h" |
16 | 17 |
17 class Profile; | 18 class Profile; |
18 class SpellCheckHostObserver; | 19 class SpellCheckHostObserver; |
19 class URLRequestContextGetter; | 20 class URLRequestContextGetter; |
20 | 21 |
21 class SpellCheckHost : public base::RefCountedThreadSafe<SpellCheckHost, | 22 class SpellCheckHost : public base::RefCountedThreadSafe<SpellCheckHost, |
22 ChromeThread::DeleteOnFileThread>, | 23 ChromeThread::DeleteOnFileThread>, |
23 public URLFetcher::Delegate { | 24 public URLFetcher::Delegate { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 126 |
126 // Used for downloading the dictionary file. We don't hold a reference, and | 127 // Used for downloading the dictionary file. We don't hold a reference, and |
127 // it is only valid to use it on the UI thread. | 128 // it is only valid to use it on the UI thread. |
128 URLRequestContextGetter* request_context_getter_; | 129 URLRequestContextGetter* request_context_getter_; |
129 | 130 |
130 // Used for downloading the dictionary file. | 131 // Used for downloading the dictionary file. |
131 scoped_ptr<URLFetcher> fetcher_; | 132 scoped_ptr<URLFetcher> fetcher_; |
132 }; | 133 }; |
133 | 134 |
134 #endif // CHROME_BROWSER_SPELLCHECK_HOST_H_ | 135 #endif // CHROME_BROWSER_SPELLCHECK_HOST_H_ |
OLD | NEW |