Chromium Code Reviews| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/prefs/pref_member.h" | 16 #include "base/prefs/pref_member.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "chrome/browser/net/chrome_network_delegate.h" | 18 #include "chrome/browser/net/chrome_network_delegate.h" |
| 19 #include "chrome/browser/net/ssl_config_service_manager.h" | 19 #include "chrome/browser/net/ssl_config_service_manager.h" |
| 20 #include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_requ est_handler.h" | |
| 21 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" | |
| 22 #include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_sta ts.h" | |
| 23 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| 24 #include "content/public/browser/browser_thread_delegate.h" | 21 #include "content/public/browser/browser_thread_delegate.h" |
| 25 #include "net/base/network_change_notifier.h" | 22 #include "net/base/network_change_notifier.h" |
| 26 #include "net/http/http_network_session.h" | 23 #include "net/http/http_network_session.h" |
| 27 #include "net/socket/next_proto.h" | 24 #include "net/socket/next_proto.h" |
| 28 | 25 |
| 29 class ChromeNetLog; | 26 class ChromeNetLog; |
| 30 class PrefProxyConfigTracker; | 27 class PrefProxyConfigTracker; |
| 31 class PrefService; | 28 class PrefService; |
| 32 class PrefRegistrySimple; | 29 class PrefRegistrySimple; |
| 33 class SystemURLRequestContextGetter; | 30 class SystemURLRequestContextGetter; |
| 34 | 31 |
| 35 namespace base { | 32 namespace base { |
| 36 class CommandLine; | 33 class CommandLine; |
| 37 } | 34 } |
| 38 | 35 |
| 39 namespace chrome_browser_net { | 36 namespace chrome_browser_net { |
| 40 class DnsProbeService; | 37 class DnsProbeService; |
| 41 } | 38 } |
| 42 | 39 |
| 40 #if defined(SPDY_PROXY_AUTH_ORIGIN) | |
| 41 namespace data_reduction_proxy { | |
| 42 class DataReductionProxyAuthRequestHandler; | |
| 43 class DataReductionProxyParams; | |
| 44 } | |
| 45 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) | |
| 46 | |
| 43 namespace extensions { | 47 namespace extensions { |
| 44 class EventRouterForwarder; | 48 class EventRouterForwarder; |
| 45 } | 49 } |
| 46 | 50 |
| 47 namespace net { | 51 namespace net { |
| 48 class CertVerifier; | 52 class CertVerifier; |
| 49 class CookieStore; | 53 class CookieStore; |
| 50 class CTVerifier; | 54 class CTVerifier; |
| 51 class FtpTransactionFactory; | 55 class FtpTransactionFactory; |
| 52 class HostMappingRules; | 56 class HostMappingRules; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 Optional<size_t> quic_max_packet_length; | 190 Optional<size_t> quic_max_packet_length; |
| 187 net::QuicTagVector quic_connection_options; | 191 net::QuicTagVector quic_connection_options; |
| 188 Optional<std::string> quic_user_agent_id; | 192 Optional<std::string> quic_user_agent_id; |
| 189 Optional<net::QuicVersionVector> quic_supported_versions; | 193 Optional<net::QuicVersionVector> quic_supported_versions; |
| 190 Optional<net::HostPortPair> origin_to_force_quic_on; | 194 Optional<net::HostPortPair> origin_to_force_quic_on; |
| 191 bool enable_user_alternate_protocol_ports; | 195 bool enable_user_alternate_protocol_ports; |
| 192 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 196 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
| 193 // main frame load fails with a DNS error in order to provide more useful | 197 // main frame load fails with a DNS error in order to provide more useful |
| 194 // information to the renderer so it can show a more specific error page. | 198 // information to the renderer so it can show a more specific error page. |
| 195 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 199 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
| 196 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | |
| 197 data_reduction_proxy_params; | |
| 198 scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> | |
| 199 data_reduction_proxy_usage_stats; | |
| 200 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | |
| 201 data_reduction_proxy_auth_request_handler; | |
| 202 ChromeNetworkDelegate::OnResolveProxyHandler on_resolve_proxy_handler; | |
| 203 }; | 200 }; |
| 204 | 201 |
| 205 // |net_log| must either outlive the IOThread or be NULL. | 202 // |net_log| must either outlive the IOThread or be NULL. |
| 206 IOThread(PrefService* local_state, | 203 IOThread(PrefService* local_state, |
| 207 policy::PolicyService* policy_service, | 204 policy::PolicyService* policy_service, |
| 208 ChromeNetLog* net_log, | 205 ChromeNetLog* net_log, |
| 209 extensions::EventRouterForwarder* extension_event_router_forwarder); | 206 extensions::EventRouterForwarder* extension_event_router_forwarder); |
| 210 | 207 |
| 211 virtual ~IOThread(); | 208 virtual ~IOThread(); |
| 212 | 209 |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 435 scoped_refptr<net::URLRequestContextGetter> | 432 scoped_refptr<net::URLRequestContextGetter> |
| 436 system_url_request_context_getter_; | 433 system_url_request_context_getter_; |
| 437 | 434 |
| 438 // True if SPDY is disabled by policy. | 435 // True if SPDY is disabled by policy. |
| 439 bool is_spdy_disabled_by_policy_; | 436 bool is_spdy_disabled_by_policy_; |
| 440 | 437 |
| 441 base::WeakPtrFactory<IOThread> weak_factory_; | 438 base::WeakPtrFactory<IOThread> weak_factory_; |
| 442 | 439 |
| 443 const base::TimeTicks creation_time_; | 440 const base::TimeTicks creation_time_; |
| 444 | 441 |
| 442 #if defined(SPDY_PROXY_AUTH_ORIGIN) | |
|
willchan no longer on Chromium
2014/07/28 15:45:22
Why did this get moved down here? This is probably
bengr
2014/07/28 20:29:03
Done.
| |
| 443 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | |
| 444 data_reduction_proxy_params_; | |
| 445 | |
| 446 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | |
| 447 data_reduction_proxy_auth_request_handler_; | |
| 448 #endif | |
| 449 | |
| 445 DISALLOW_COPY_AND_ASSIGN(IOThread); | 450 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 446 }; | 451 }; |
| 447 | 452 |
| 448 #endif // CHROME_BROWSER_IO_THREAD_H_ | 453 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |