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

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: Reworked HaveAuth test 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
« no previous file with comments | « chrome/browser/io_thread.h ('k') | components/data_reduction_proxy.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index e72ebd1c7284fdf022ecca323508bf0112efcedd..eb60017609aa0907f8d06f4fd7bdecd60b491a83 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -98,6 +98,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)
@@ -653,6 +654,9 @@ void IOThread::InitAsync() {
chrome::VersionInfo().Version(),
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(
@@ -1052,6 +1056,9 @@ void IOThread::InitializeNetworkSessionParamsFromGlobals(
&params->origin_to_force_quic_on);
params->enable_user_alternate_protocol_ports =
globals.enable_user_alternate_protocol_ports;
+#if defined(SPDY_PROXY_AUTH_ORIGIN)
+ params->proxy_delegate = globals.data_reduction_proxy_delegate.get();
+#endif
}
base::TimeTicks IOThread::creation_time() const {
« no previous file with comments | « chrome/browser/io_thread.h ('k') | components/data_reduction_proxy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698