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

Unified Diff: chrome/browser/io_thread.h

Issue 869393005: Perform ClientHello padding if the field trial is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@net_connection_error_uma
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | net/socket/ssl_client_socket_openssl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.h
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index 1f969ec4a63fce5acf8c46d0cb821f4e939e9454..f197841cd62b42a274f3eb1418b899d53f61096b 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -59,6 +59,7 @@ class NetworkDelegate;
class ProxyConfigService;
class ProxyService;
class SSLConfigService;
+class SSLSocketConfigService;
class TransportSecurityState;
class URLRequestContext;
class URLRequestContextGetter;
@@ -198,6 +199,7 @@ class IOThread : public content::BrowserThreadDelegate {
// main frame load fails with a DNS error in order to provide more useful
// information to the renderer so it can show a more specific error page.
scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service;
+ scoped_ptr<net::SSLSocketConfigService> ssl_socket_config_service;
};
// |net_log| must either outlive the IOThread or be NULL.
@@ -308,6 +310,10 @@ class IOThread : public content::BrowserThreadDelegate {
// well as the QUIC field trial group.
void ConfigureQuic(const base::CommandLine& command_line);
+ // Configures SSLSocketConfigService based on the flags in |command_line| as
+ // well as the ClientHello field trial group.
+ void ConfigureSSLSocketConfigService(const base::CommandLine& command_line);
+
extensions::EventRouterForwarder* extension_event_router_forwarder() {
#if defined(ENABLE_EXTENSIONS)
return extension_event_router_forwarder_;
@@ -396,6 +402,13 @@ class IOThread : public content::BrowserThreadDelegate {
const base::CommandLine& command_line,
const VariationParameters& quic_trial_params);
+ // Configures the SSLSocketConfigService in |globals| based on the flags in
+ // |command_line| as well as the ClientHello field trial group.
+ static void ConfigureSSLSocketConfigServiceGlobals(
+ const base::CommandLine& command_line,
+ base::StringPiece client_hello_trial_group,
+ Globals* globals);
+
// The NetLog is owned by the browser process, to allow logging from other
// threads during shutdown, but is used most frequently on the IOThread.
ChromeNetLog* net_log_;
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | net/socket/ssl_client_socket_openssl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698