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