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

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

Issue 791493015: Adding q=low to the Chrome-Proxy request header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase test fixes 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 d990f26350ccabdfaa93abe006fcac750c102ce5..9ea835f2a9675cd10cc0215b0aff150415a3ae09 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(
- DataReductionProxyAuthRequestHandler* auth_handler,
+ DataReductionProxyRequestOptions* request_options,
DataReductionProxyParams* params)
- : auth_handler_(auth_handler),
+ : request_options_(request_options),
params_(params) {
- DCHECK(auth_handler);
+ DCHECK(request_options);
DCHECK(params);
}
@@ -55,7 +55,8 @@ void DataReductionProxyDelegate::OnBeforeSendHeaders(
void DataReductionProxyDelegate::OnBeforeTunnelRequest(
const net::HostPortPair& proxy_server,
net::HttpRequestHeaders* extra_headers) {
- auth_handler_->MaybeAddProxyTunnelRequestHandler(proxy_server, extra_headers);
+ request_options_->MaybeAddProxyTunnelRequestHandler(
+ proxy_server, extra_headers);
}
void DataReductionProxyDelegate::OnTunnelHeadersReceived(

Powered by Google App Engine
This is Rietveld 408576698