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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc

Issue 903073003: Revert "Adding q=low to the Chrome-Proxy request header" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
index 9ea835f2a9675cd10cc0215b0aff150415a3ae09..d990f26350ccabdfaa93abe006fcac750c102ce5 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
@@ -14,11 +14,11 @@
namespace data_reduction_proxy {
DataReductionProxyDelegate::DataReductionProxyDelegate(
- DataReductionProxyRequestOptions* request_options,
+ DataReductionProxyAuthRequestHandler* auth_handler,
DataReductionProxyParams* params)
- : request_options_(request_options),
+ : auth_handler_(auth_handler),
params_(params) {
- DCHECK(request_options);
+ DCHECK(auth_handler);
DCHECK(params);
}
@@ -55,8 +55,7 @@ void DataReductionProxyDelegate::OnBeforeSendHeaders(
void DataReductionProxyDelegate::OnBeforeTunnelRequest(
const net::HostPortPair& proxy_server,
net::HttpRequestHeaders* extra_headers) {
- request_options_->MaybeAddProxyTunnelRequestHandler(
- proxy_server, extra_headers);
+ auth_handler_->MaybeAddProxyTunnelRequestHandler(proxy_server, extra_headers);
}
void DataReductionProxyDelegate::OnTunnelHeadersReceived(

Powered by Google App Engine
This is Rietveld 408576698