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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h

Issue 390533003: Bypassed Bytes UMAs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving #if defined(SPDY_PROXY_AUTH_ORIGIN) Created 6 years, 5 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/browser/data_reduction_proxy_protocol.h
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h
index 03c2a8f100b8f47f09b75faea15d7cde7a6eca5a..26dca40cb6a9de6a6fffa1a4e15a2b4f08dd662a 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "net/proxy/proxy_service.h"
namespace base {
class TimeDelta;
@@ -27,12 +28,14 @@ class DataReductionProxyParams;
// Decides whether to mark the data reduction proxy as temporarily bad and
// put it on the proxy retry list. Returns true if the request should be
-// retried. Sets |override_response_headers| to redirect if so.
+// retried. Sets |override_response_headers| to redirect if so. Returns
+// the DataReductionProxyBypassType (if not NULL).
bool MaybeBypassProxyAndPrepareToRetry(
const DataReductionProxyParams* params,
net::URLRequest* request,
const net::HttpResponseHeaders* original_response_headers,
- scoped_refptr<net::HttpResponseHeaders>* override_response_headers);
+ scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
+ net::ProxyService::DataReductionProxyBypassType* proxy_bypass_type);
// Configure |result| to proceed directly to the origin if |result|'s current
// proxy is the data reduction proxy, the

Powered by Google App Engine
This is Rietveld 408576698