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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 #if defined(ENABLE_EXTENSIONS) | 162 #if defined(ENABLE_EXTENSIONS) |
163 scoped_refptr<extensions::EventRouterForwarder> | 163 scoped_refptr<extensions::EventRouterForwarder> |
164 extension_event_router_forwarder; | 164 extension_event_router_forwarder; |
165 #endif | 165 #endif |
166 scoped_ptr<net::HostMappingRules> host_mapping_rules; | 166 scoped_ptr<net::HostMappingRules> host_mapping_rules; |
167 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings; | 167 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings; |
168 bool enable_ssl_connect_job_waiting; | 168 bool enable_ssl_connect_job_waiting; |
169 bool ignore_certificate_errors; | 169 bool ignore_certificate_errors; |
170 uint16 testing_fixed_http_port; | 170 uint16 testing_fixed_http_port; |
171 uint16 testing_fixed_https_port; | 171 uint16 testing_fixed_https_port; |
| 172 Optional<bool> enable_tcp_fast_open_for_ssl; |
172 | 173 |
173 Optional<size_t> initial_max_spdy_concurrent_streams; | 174 Optional<size_t> initial_max_spdy_concurrent_streams; |
174 Optional<bool> force_spdy_single_domain; | 175 Optional<bool> force_spdy_single_domain; |
175 Optional<bool> enable_spdy_compression; | 176 Optional<bool> enable_spdy_compression; |
176 Optional<bool> enable_spdy_ping_based_connection_checking; | 177 Optional<bool> enable_spdy_ping_based_connection_checking; |
177 Optional<net::NextProto> spdy_default_protocol; | 178 Optional<net::NextProto> spdy_default_protocol; |
178 net::NextProtoVector next_protos; | 179 net::NextProtoVector next_protos; |
179 Optional<string> trusted_spdy_proxy; | 180 Optional<string> trusted_spdy_proxy; |
180 Optional<bool> force_spdy_over_ssl; | 181 Optional<bool> force_spdy_over_ssl; |
181 Optional<bool> force_spdy_always; | 182 Optional<bool> force_spdy_always; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 virtual void InitAsync() OVERRIDE; | 259 virtual void InitAsync() OVERRIDE; |
259 virtual void CleanUp() OVERRIDE; | 260 virtual void CleanUp() OVERRIDE; |
260 | 261 |
261 // Initializes |params| based on the settings in |globals|. | 262 // Initializes |params| based on the settings in |globals|. |
262 static void InitializeNetworkSessionParamsFromGlobals( | 263 static void InitializeNetworkSessionParamsFromGlobals( |
263 const Globals& globals, | 264 const Globals& globals, |
264 net::HttpNetworkSession::Params* params); | 265 net::HttpNetworkSession::Params* params); |
265 | 266 |
266 void InitializeNetworkOptions(const base::CommandLine& parsed_command_line); | 267 void InitializeNetworkOptions(const base::CommandLine& parsed_command_line); |
267 | 268 |
| 269 // Sets up TCP FastOpen if enabled via field trials or via the command line. |
| 270 void ConfigureTCPFastOpen(const base::CommandLine& command_line); |
| 271 |
268 // Enable SPDY with the given mode, which may contain the following: | 272 // Enable SPDY with the given mode, which may contain the following: |
269 // | 273 // |
270 // "off" : Disables SPDY support entirely. | 274 // "off" : Disables SPDY support entirely. |
271 // "ssl" : Forces SPDY for all HTTPS requests. | 275 // "ssl" : Forces SPDY for all HTTPS requests. |
272 // "no-ssl" : Forces SPDY for all HTTP requests. | 276 // "no-ssl" : Forces SPDY for all HTTP requests. |
273 // "no-ping" : Disables SPDY ping connection testing. | 277 // "no-ping" : Disables SPDY ping connection testing. |
274 // "exclude=<host>" : Disables SPDY support for the host <host>. | 278 // "exclude=<host>" : Disables SPDY support for the host <host>. |
275 // "no-compress" : Disables SPDY header compression. | 279 // "no-compress" : Disables SPDY header compression. |
276 // "no-alt-protocols : Disables alternate protocol support. | 280 // "no-alt-protocols : Disables alternate protocol support. |
277 // "force-alt-protocols : Forces an alternate protocol of SPDY/3 | 281 // "force-alt-protocols : Forces an alternate protocol of SPDY/3 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 bool is_spdy_disabled_by_policy_; | 452 bool is_spdy_disabled_by_policy_; |
449 | 453 |
450 base::WeakPtrFactory<IOThread> weak_factory_; | 454 base::WeakPtrFactory<IOThread> weak_factory_; |
451 | 455 |
452 const base::TimeTicks creation_time_; | 456 const base::TimeTicks creation_time_; |
453 | 457 |
454 DISALLOW_COPY_AND_ASSIGN(IOThread); | 458 DISALLOW_COPY_AND_ASSIGN(IOThread); |
455 }; | 459 }; |
456 | 460 |
457 #endif // CHROME_BROWSER_IO_THREAD_H_ | 461 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |