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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 namespace chrome_browser_net { | 39 namespace chrome_browser_net { |
40 class DnsProbeService; | 40 class DnsProbeService; |
41 } | 41 } |
42 | 42 |
43 namespace extensions { | 43 namespace extensions { |
44 class EventRouterForwarder; | 44 class EventRouterForwarder; |
45 } | 45 } |
46 | 46 |
47 namespace net { | 47 namespace net { |
48 class CertVerifier; | 48 class CertVerifier; |
| 49 class ChannelIDService; |
49 class CookieStore; | 50 class CookieStore; |
50 class CTVerifier; | 51 class CTVerifier; |
51 class FtpTransactionFactory; | 52 class FtpTransactionFactory; |
52 class HostMappingRules; | 53 class HostMappingRules; |
53 class HostResolver; | 54 class HostResolver; |
54 class HttpAuthHandlerFactory; | 55 class HttpAuthHandlerFactory; |
55 class HttpServerProperties; | 56 class HttpServerProperties; |
56 class HttpTransactionFactory; | 57 class HttpTransactionFactory; |
57 class HttpUserAgentSettings; | 58 class HttpUserAgentSettings; |
58 class NetworkDelegate; | 59 class NetworkDelegate; |
59 class ServerBoundCertService; | |
60 class ProxyConfigService; | 60 class ProxyConfigService; |
61 class ProxyService; | 61 class ProxyService; |
62 class SSLConfigService; | 62 class SSLConfigService; |
63 class TransportSecurityState; | 63 class TransportSecurityState; |
64 class URLRequestContext; | 64 class URLRequestContext; |
65 class URLRequestContextGetter; | 65 class URLRequestContextGetter; |
66 class URLRequestJobFactory; | 66 class URLRequestJobFactory; |
67 class URLRequestThrottlerManager; | 67 class URLRequestThrottlerManager; |
68 class URLSecurityManager; | 68 class URLSecurityManager; |
69 } // namespace net | 69 } // namespace net |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 Globals* const globals_; | 114 Globals* const globals_; |
115 }; | 115 }; |
116 | 116 |
117 Globals(); | 117 Globals(); |
118 ~Globals(); | 118 ~Globals(); |
119 | 119 |
120 // The "system" NetworkDelegate, used for Profile-agnostic network events. | 120 // The "system" NetworkDelegate, used for Profile-agnostic network events. |
121 scoped_ptr<net::NetworkDelegate> system_network_delegate; | 121 scoped_ptr<net::NetworkDelegate> system_network_delegate; |
122 scoped_ptr<net::HostResolver> host_resolver; | 122 scoped_ptr<net::HostResolver> host_resolver; |
123 scoped_ptr<net::CertVerifier> cert_verifier; | 123 scoped_ptr<net::CertVerifier> cert_verifier; |
124 // The ServerBoundCertService must outlive the HttpTransactionFactory. | 124 // The ChannelIDService must outlive the HttpTransactionFactory. |
125 scoped_ptr<net::ServerBoundCertService> system_server_bound_cert_service; | 125 scoped_ptr<net::ChannelIDService> system_channel_id_service; |
126 // This TransportSecurityState doesn't load or save any state. It's only | 126 // This TransportSecurityState doesn't load or save any state. It's only |
127 // used to enforce pinning for system requests and will only use built-in | 127 // used to enforce pinning for system requests and will only use built-in |
128 // pins. | 128 // pins. |
129 scoped_ptr<net::TransportSecurityState> transport_security_state; | 129 scoped_ptr<net::TransportSecurityState> transport_security_state; |
130 scoped_ptr<net::CTVerifier> cert_transparency_verifier; | 130 scoped_ptr<net::CTVerifier> cert_transparency_verifier; |
131 scoped_refptr<net::SSLConfigService> ssl_config_service; | 131 scoped_refptr<net::SSLConfigService> ssl_config_service; |
132 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; | 132 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; |
133 scoped_ptr<net::HttpServerProperties> http_server_properties; | 133 scoped_ptr<net::HttpServerProperties> http_server_properties; |
134 scoped_ptr<net::ProxyService> proxy_script_fetcher_proxy_service; | 134 scoped_ptr<net::ProxyService> proxy_script_fetcher_proxy_service; |
135 scoped_ptr<net::HttpTransactionFactory> | 135 scoped_ptr<net::HttpTransactionFactory> |
136 proxy_script_fetcher_http_transaction_factory; | 136 proxy_script_fetcher_http_transaction_factory; |
137 scoped_ptr<net::FtpTransactionFactory> | 137 scoped_ptr<net::FtpTransactionFactory> |
138 proxy_script_fetcher_ftp_transaction_factory; | 138 proxy_script_fetcher_ftp_transaction_factory; |
139 scoped_ptr<net::URLRequestJobFactory> | 139 scoped_ptr<net::URLRequestJobFactory> |
140 proxy_script_fetcher_url_request_job_factory; | 140 proxy_script_fetcher_url_request_job_factory; |
141 scoped_ptr<net::URLRequestThrottlerManager> throttler_manager; | 141 scoped_ptr<net::URLRequestThrottlerManager> throttler_manager; |
142 scoped_ptr<net::URLSecurityManager> url_security_manager; | 142 scoped_ptr<net::URLSecurityManager> url_security_manager; |
143 // TODO(willchan): Remove proxy script fetcher context since it's not | 143 // TODO(willchan): Remove proxy script fetcher context since it's not |
144 // necessary now that I got rid of refcounting URLRequestContexts. | 144 // necessary now that I got rid of refcounting URLRequestContexts. |
145 // | 145 // |
146 // The first URLRequestContext is |system_url_request_context|. We introduce | 146 // The first URLRequestContext is |system_url_request_context|. We introduce |
147 // |proxy_script_fetcher_context| for the second context. It has a direct | 147 // |proxy_script_fetcher_context| for the second context. It has a direct |
148 // ProxyService, since we always directly connect to fetch the PAC script. | 148 // ProxyService, since we always directly connect to fetch the PAC script. |
149 scoped_ptr<net::URLRequestContext> proxy_script_fetcher_context; | 149 scoped_ptr<net::URLRequestContext> proxy_script_fetcher_context; |
150 scoped_ptr<net::ProxyService> system_proxy_service; | 150 scoped_ptr<net::ProxyService> system_proxy_service; |
151 scoped_ptr<net::HttpTransactionFactory> system_http_transaction_factory; | 151 scoped_ptr<net::HttpTransactionFactory> system_http_transaction_factory; |
152 scoped_ptr<net::URLRequestJobFactory> system_url_request_job_factory; | 152 scoped_ptr<net::URLRequestJobFactory> system_url_request_job_factory; |
153 scoped_ptr<net::URLRequestContext> system_request_context; | 153 scoped_ptr<net::URLRequestContext> system_request_context; |
154 SystemRequestContextLeakChecker system_request_context_leak_checker; | 154 SystemRequestContextLeakChecker system_request_context_leak_checker; |
155 // |system_cookie_store| and |system_server_bound_cert_service| are shared | 155 // |system_cookie_store| and |system_channel_id_service| are shared |
156 // between |proxy_script_fetcher_context| and |system_request_context|. | 156 // between |proxy_script_fetcher_context| and |system_request_context|. |
157 scoped_refptr<net::CookieStore> system_cookie_store; | 157 scoped_refptr<net::CookieStore> system_cookie_store; |
158 #if defined(ENABLE_EXTENSIONS) | 158 #if defined(ENABLE_EXTENSIONS) |
159 scoped_refptr<extensions::EventRouterForwarder> | 159 scoped_refptr<extensions::EventRouterForwarder> |
160 extension_event_router_forwarder; | 160 extension_event_router_forwarder; |
161 #endif | 161 #endif |
162 scoped_ptr<net::HostMappingRules> host_mapping_rules; | 162 scoped_ptr<net::HostMappingRules> host_mapping_rules; |
163 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings; | 163 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings; |
164 bool ignore_certificate_errors; | 164 bool ignore_certificate_errors; |
165 uint16 testing_fixed_http_port; | 165 uint16 testing_fixed_http_port; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 bool is_spdy_disabled_by_policy_; | 439 bool is_spdy_disabled_by_policy_; |
440 | 440 |
441 base::WeakPtrFactory<IOThread> weak_factory_; | 441 base::WeakPtrFactory<IOThread> weak_factory_; |
442 | 442 |
443 const base::TimeTicks creation_time_; | 443 const base::TimeTicks creation_time_; |
444 | 444 |
445 DISALLOW_COPY_AND_ASSIGN(IOThread); | 445 DISALLOW_COPY_AND_ASSIGN(IOThread); |
446 }; | 446 }; |
447 | 447 |
448 #endif // CHROME_BROWSER_IO_THREAD_H_ | 448 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |