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