| 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; |
| 27 class HttpPipeliningCompatibilityClient; | 28 class HttpPipeliningCompatibilityClient; |
| 28 } | 29 } |
| 29 | 30 |
| 30 namespace extensions { | 31 namespace extensions { |
| 31 class EventRouterForwarder; | 32 class EventRouterForwarder; |
| 32 } | 33 } |
| 33 | 34 |
| 34 namespace net { | 35 namespace net { |
| 35 class CertVerifier; | 36 class CertVerifier; |
| 36 class CookieStore; | 37 class CookieStore; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 scoped_ptr<net::URLRequestContext> system_request_context; | 105 scoped_ptr<net::URLRequestContext> system_request_context; |
| 105 SystemRequestContextLeakChecker system_request_context_leak_checker; | 106 SystemRequestContextLeakChecker system_request_context_leak_checker; |
| 106 // |system_cookie_store| and |system_server_bound_cert_service| are shared | 107 // |system_cookie_store| and |system_server_bound_cert_service| are shared |
| 107 // between |proxy_script_fetcher_context| and |system_request_context|. | 108 // between |proxy_script_fetcher_context| and |system_request_context|. |
| 108 scoped_refptr<net::CookieStore> system_cookie_store; | 109 scoped_refptr<net::CookieStore> system_cookie_store; |
| 109 scoped_ptr<net::ServerBoundCertService> system_server_bound_cert_service; | 110 scoped_ptr<net::ServerBoundCertService> system_server_bound_cert_service; |
| 110 scoped_refptr<extensions::EventRouterForwarder> | 111 scoped_refptr<extensions::EventRouterForwarder> |
| 111 extension_event_router_forwarder; | 112 extension_event_router_forwarder; |
| 112 scoped_ptr<chrome_browser_net::HttpPipeliningCompatibilityClient> | 113 scoped_ptr<chrome_browser_net::HttpPipeliningCompatibilityClient> |
| 113 http_pipelining_compatibility_client; | 114 http_pipelining_compatibility_client; |
| 115 scoped_ptr<chrome_browser_net::CacheStats> cache_stats; |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 // |net_log| must either outlive the IOThread or be NULL. | 118 // |net_log| must either outlive the IOThread or be NULL. |
| 117 IOThread(PrefService* local_state, | 119 IOThread(PrefService* local_state, |
| 118 ChromeNetLog* net_log, | 120 ChromeNetLog* net_log, |
| 119 extensions::EventRouterForwarder* extension_event_router_forwarder); | 121 extensions::EventRouterForwarder* extension_event_router_forwarder); |
| 120 | 122 |
| 121 virtual ~IOThread(); | 123 virtual ~IOThread(); |
| 122 | 124 |
| 123 // 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... |
| 213 system_url_request_context_getter_; | 215 system_url_request_context_getter_; |
| 214 | 216 |
| 215 net::SdchManager* sdch_manager_; | 217 net::SdchManager* sdch_manager_; |
| 216 | 218 |
| 217 base::WeakPtrFactory<IOThread> weak_factory_; | 219 base::WeakPtrFactory<IOThread> weak_factory_; |
| 218 | 220 |
| 219 DISALLOW_COPY_AND_ASSIGN(IOThread); | 221 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 220 }; | 222 }; |
| 221 | 223 |
| 222 #endif // CHROME_BROWSER_IO_THREAD_H_ | 224 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |