| 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 19 matching lines...) Expand all Loading... |
| 30 class SystemURLRequestContextGetter; | 30 class SystemURLRequestContextGetter; |
| 31 | 31 |
| 32 namespace base { | 32 namespace base { |
| 33 class CommandLine; | 33 class CommandLine; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace chrome_browser_net { | 36 namespace chrome_browser_net { |
| 37 class DnsProbeService; | 37 class DnsProbeService; |
| 38 } | 38 } |
| 39 | 39 |
| 40 #if defined(SPDY_PROXY_AUTH_ORIGIN) | |
| 41 namespace data_reduction_proxy { | 40 namespace data_reduction_proxy { |
| 42 class DataReductionProxyAuthRequestHandler; | 41 class DataReductionProxyAuthRequestHandler; |
| 43 class DataReductionProxyDelegate; | 42 class DataReductionProxyDelegate; |
| 44 class DataReductionProxyParams; | 43 class DataReductionProxyParams; |
| 45 } | 44 } |
| 46 #endif // defined(SPDY_PROXY_AUTH_ORIGIN) | |
| 47 | 45 |
| 48 namespace extensions { | 46 namespace extensions { |
| 49 class EventRouterForwarder; | 47 class EventRouterForwarder; |
| 50 } | 48 } |
| 51 | 49 |
| 52 namespace net { | 50 namespace net { |
| 53 class CertVerifier; | 51 class CertVerifier; |
| 54 class ChannelIDService; | 52 class ChannelIDService; |
| 55 class CookieStore; | 53 class CookieStore; |
| 56 class CTVerifier; | 54 class CTVerifier; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 Optional<size_t> quic_max_packet_length; | 192 Optional<size_t> quic_max_packet_length; |
| 195 net::QuicTagVector quic_connection_options; | 193 net::QuicTagVector quic_connection_options; |
| 196 Optional<std::string> quic_user_agent_id; | 194 Optional<std::string> quic_user_agent_id; |
| 197 Optional<net::QuicVersionVector> quic_supported_versions; | 195 Optional<net::QuicVersionVector> quic_supported_versions; |
| 198 Optional<net::HostPortPair> origin_to_force_quic_on; | 196 Optional<net::HostPortPair> origin_to_force_quic_on; |
| 199 bool enable_user_alternate_protocol_ports; | 197 bool enable_user_alternate_protocol_ports; |
| 200 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 198 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
| 201 // main frame load fails with a DNS error in order to provide more useful | 199 // main frame load fails with a DNS error in order to provide more useful |
| 202 // information to the renderer so it can show a more specific error page. | 200 // information to the renderer so it can show a more specific error page. |
| 203 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 201 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
| 204 #if defined(SPDY_PROXY_AUTH_ORIGIN) | 202 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
| 205 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 203 data_reduction_proxy_params; |
| 206 data_reduction_proxy_params; | 204 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> |
| 207 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | 205 data_reduction_proxy_auth_request_handler; |
| 208 data_reduction_proxy_auth_request_handler; | 206 scoped_ptr<data_reduction_proxy::DataReductionProxyDelegate> |
| 209 scoped_ptr<data_reduction_proxy::DataReductionProxyDelegate> | 207 data_reduction_proxy_delegate; |
| 210 data_reduction_proxy_delegate; | |
| 211 #endif | |
| 212 }; | 208 }; |
| 213 | 209 |
| 214 // |net_log| must either outlive the IOThread or be NULL. | 210 // |net_log| must either outlive the IOThread or be NULL. |
| 215 IOThread(PrefService* local_state, | 211 IOThread(PrefService* local_state, |
| 216 policy::PolicyService* policy_service, | 212 policy::PolicyService* policy_service, |
| 217 ChromeNetLog* net_log, | 213 ChromeNetLog* net_log, |
| 218 extensions::EventRouterForwarder* extension_event_router_forwarder); | 214 extensions::EventRouterForwarder* extension_event_router_forwarder); |
| 219 | 215 |
| 220 virtual ~IOThread(); | 216 virtual ~IOThread(); |
| 221 | 217 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 net::SSLConfigService* GetSSLConfigService(); | 308 net::SSLConfigService* GetSSLConfigService(); |
| 313 | 309 |
| 314 void ChangedToOnTheRecordOnIOThread(); | 310 void ChangedToOnTheRecordOnIOThread(); |
| 315 | 311 |
| 316 void UpdateDnsClientEnabled(); | 312 void UpdateDnsClientEnabled(); |
| 317 | 313 |
| 318 // Configures QUIC options based on the flags in |command_line| as | 314 // Configures QUIC options based on the flags in |command_line| as |
| 319 // well as the QUIC field trial group. | 315 // well as the QUIC field trial group. |
| 320 void ConfigureQuic(const base::CommandLine& command_line); | 316 void ConfigureQuic(const base::CommandLine& command_line); |
| 321 | 317 |
| 318 // Set up data reduction proxy related objects on IO thread globals. |
| 319 void SetupDataReductionProxy(ChromeNetworkDelegate* network_delegate); |
| 320 |
| 322 extensions::EventRouterForwarder* extension_event_router_forwarder() { | 321 extensions::EventRouterForwarder* extension_event_router_forwarder() { |
| 323 #if defined(ENABLE_EXTENSIONS) | 322 #if defined(ENABLE_EXTENSIONS) |
| 324 return extension_event_router_forwarder_; | 323 return extension_event_router_forwarder_; |
| 325 #else | 324 #else |
| 326 return NULL; | 325 return NULL; |
| 327 #endif | 326 #endif |
| 328 } | 327 } |
| 329 // Configures QUIC options in |globals| based on the flags in |command_line| | 328 // Configures QUIC options in |globals| based on the flags in |command_line| |
| 330 // as well as the QUIC field trial group and parameters. | 329 // as well as the QUIC field trial group and parameters. |
| 331 static void ConfigureQuicGlobals( | 330 static void ConfigureQuicGlobals( |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 bool is_spdy_disabled_by_policy_; | 459 bool is_spdy_disabled_by_policy_; |
| 461 | 460 |
| 462 const base::TimeTicks creation_time_; | 461 const base::TimeTicks creation_time_; |
| 463 | 462 |
| 464 base::WeakPtrFactory<IOThread> weak_factory_; | 463 base::WeakPtrFactory<IOThread> weak_factory_; |
| 465 | 464 |
| 466 DISALLOW_COPY_AND_ASSIGN(IOThread); | 465 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 467 }; | 466 }; |
| 468 | 467 |
| 469 #endif // CHROME_BROWSER_IO_THREAD_H_ | 468 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |