Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: chrome/browser/io_thread.h

Issue 557373002: Plumbing for TCP FastOpen field trial and enables it for SSL sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tfo2
Patch Set: Silly file deleted. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/io_thread.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/io_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698