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

Unified Diff: chrome/browser/io_thread.cc

Issue 517693002: Add embedder-specific headers to HTTP CONNECT tunnel request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot to upload the new files 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 7726fcf5524bddfd32c81c0fd5b953f5d32749a3..af202de536bf33cf1b5ba3d006ed4b747de56b4e 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -101,6 +101,7 @@
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h"
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_delegate.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h"
#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
@@ -663,6 +664,9 @@ void IOThread::InitAsync() {
DataReductionProxyChromeSettings::GetBuildAndPatchNumber(),
globals_->data_reduction_proxy_params.get(),
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
+ globals_->data_reduction_proxy_delegate.reset(
+ new data_reduction_proxy::DataReductionProxyDelegate(
+ globals_->data_reduction_proxy_auth_request_handler.get()));
// This is the same as in ProfileImplIOData except that we do not collect
// usage stats.
network_delegate->set_data_reduction_proxy_params(
@@ -1058,6 +1062,7 @@ void IOThread::InitializeNetworkSessionParamsFromGlobals(
&params->origin_to_force_quic_on);
params->enable_user_alternate_protocol_ports =
globals.enable_user_alternate_protocol_ports;
+ params->proxy_delegate = globals.data_reduction_proxy_delegate.get();
}
base::TimeTicks IOThread::creation_time() const {

Powered by Google App Engine
This is Rietveld 408576698