OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IO_THREAD_H_ | 5 #ifndef CHROME_BROWSER_IO_THREAD_H_ |
6 #define CHROME_BROWSER_IO_THREAD_H_ | 6 #define CHROME_BROWSER_IO_THREAD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "chrome/browser/net/ssl_config_service_manager.h" | 15 #include "chrome/browser/net/ssl_config_service_manager.h" |
16 #include "chrome/browser/prefs/pref_member.h" | 16 #include "chrome/browser/prefs/pref_member.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/browser_thread_delegate.h" | 18 #include "content/public/browser/browser_thread_delegate.h" |
19 #include "net/base/network_change_notifier.h" | 19 #include "net/base/network_change_notifier.h" |
20 | 20 |
21 class ChromeNetLog; | 21 class ChromeNetLog; |
22 class PrefProxyConfigTrackerImpl; | 22 class PrefProxyConfigTrackerImpl; |
23 class PrefService; | 23 class PrefService; |
24 class SystemURLRequestContextGetter; | 24 class SystemURLRequestContextGetter; |
25 | 25 |
26 namespace chrome_browser_net { | 26 namespace chrome_browser_net { |
27 class CacheStats; | |
28 class HttpPipeliningCompatibilityClient; | 27 class HttpPipeliningCompatibilityClient; |
| 28 class LoadTimeStats; |
29 } | 29 } |
30 | 30 |
31 namespace extensions { | 31 namespace extensions { |
32 class EventRouterForwarder; | 32 class EventRouterForwarder; |
33 } | 33 } |
34 | 34 |
35 namespace net { | 35 namespace net { |
36 class CertVerifier; | 36 class CertVerifier; |
37 class CookieStore; | 37 class CookieStore; |
38 class FtpTransactionFactory; | 38 class FtpTransactionFactory; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 scoped_ptr<net::URLRequestContext> system_request_context; | 105 scoped_ptr<net::URLRequestContext> system_request_context; |
106 SystemRequestContextLeakChecker system_request_context_leak_checker; | 106 SystemRequestContextLeakChecker system_request_context_leak_checker; |
107 // |system_cookie_store| and |system_server_bound_cert_service| are shared | 107 // |system_cookie_store| and |system_server_bound_cert_service| are shared |
108 // between |proxy_script_fetcher_context| and |system_request_context|. | 108 // between |proxy_script_fetcher_context| and |system_request_context|. |
109 scoped_refptr<net::CookieStore> system_cookie_store; | 109 scoped_refptr<net::CookieStore> system_cookie_store; |
110 scoped_ptr<net::ServerBoundCertService> system_server_bound_cert_service; | 110 scoped_ptr<net::ServerBoundCertService> system_server_bound_cert_service; |
111 scoped_refptr<extensions::EventRouterForwarder> | 111 scoped_refptr<extensions::EventRouterForwarder> |
112 extension_event_router_forwarder; | 112 extension_event_router_forwarder; |
113 scoped_ptr<chrome_browser_net::HttpPipeliningCompatibilityClient> | 113 scoped_ptr<chrome_browser_net::HttpPipeliningCompatibilityClient> |
114 http_pipelining_compatibility_client; | 114 http_pipelining_compatibility_client; |
115 scoped_ptr<chrome_browser_net::CacheStats> cache_stats; | 115 scoped_ptr<chrome_browser_net::LoadTimeStats> load_time_stats; |
116 }; | 116 }; |
117 | 117 |
118 // |net_log| must either outlive the IOThread or be NULL. | 118 // |net_log| must either outlive the IOThread or be NULL. |
119 IOThread(PrefService* local_state, | 119 IOThread(PrefService* local_state, |
120 ChromeNetLog* net_log, | 120 ChromeNetLog* net_log, |
121 extensions::EventRouterForwarder* extension_event_router_forwarder); | 121 extensions::EventRouterForwarder* extension_event_router_forwarder); |
122 | 122 |
123 virtual ~IOThread(); | 123 virtual ~IOThread(); |
124 | 124 |
125 // Can only be called on the IO thread. | 125 // Can only be called on the IO thread. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 system_url_request_context_getter_; | 215 system_url_request_context_getter_; |
216 | 216 |
217 net::SdchManager* sdch_manager_; | 217 net::SdchManager* sdch_manager_; |
218 | 218 |
219 base::WeakPtrFactory<IOThread> weak_factory_; | 219 base::WeakPtrFactory<IOThread> weak_factory_; |
220 | 220 |
221 DISALLOW_COPY_AND_ASSIGN(IOThread); | 221 DISALLOW_COPY_AND_ASSIGN(IOThread); |
222 }; | 222 }; |
223 | 223 |
224 #endif // CHROME_BROWSER_IO_THREAD_H_ | 224 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |