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

Unified Diff: chrome/browser/android/intercept_download_resource_throttle.cc

Issue 156373002: Support for new data reduction proxy via header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compilation error on unsupported platforms Created 6 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
« no previous file with comments | « no previous file | chrome/browser/net/spdyproxy/data_reduction_proxy_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/intercept_download_resource_throttle.cc
diff --git a/chrome/browser/android/intercept_download_resource_throttle.cc b/chrome/browser/android/intercept_download_resource_throttle.cc
index df00424575c1c3e692b2064cf9b093e06a59f533..da5d1afb1085409bb5281c48c687c1984a3ac32d 100644
--- a/chrome/browser/android/intercept_download_resource_throttle.cc
+++ b/chrome/browser/android/intercept_download_resource_throttle.cc
@@ -10,10 +10,6 @@
#include "net/http/http_response_headers.h"
#include "net/url_request/url_request.h"
-#if defined(SPDY_PROXY_AUTH_ORIGIN)
-#include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings.h"
-#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
-
namespace chrome {
InterceptDownloadResourceThrottle::InterceptDownloadResourceThrottle(
@@ -55,8 +51,8 @@ void InterceptDownloadResourceThrottle::ProcessDownloadRequest() {
net::HttpRequestHeaders headers;
request_->GetFullRequestHeaders(&headers);
if (headers.HasHeader(net::HttpRequestHeaders::kAuthorization) ||
- !DataReductionProxySettings::WasFetchedViaProxy(
- request_->response_info().headers)) {
+ !(request_->response_info().headers &&
+ request_->response_info().headers->IsChromeProxyResponse())) {
return;
}
#else
« no previous file with comments | « no previous file | chrome/browser/net/spdyproxy/data_reduction_proxy_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698