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

Unified Diff: components/data_reduction_proxy/common/data_reduction_proxy_headers.h

Issue 467823002: Added support for 'Chrome-Proxy: block-once' header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased on master Created 6 years, 4 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/common/data_reduction_proxy_headers.h
diff --git a/components/data_reduction_proxy/common/data_reduction_proxy_headers.h b/components/data_reduction_proxy/common/data_reduction_proxy_headers.h
index 6dc8800620924fad54d56cd0f9874e6e6403335c..849ade037bc78d14892e100de782e86aea7f8137 100644
--- a/components/data_reduction_proxy/common/data_reduction_proxy_headers.h
+++ b/components/data_reduction_proxy/common/data_reduction_proxy_headers.h
@@ -25,7 +25,6 @@ namespace data_reduction_proxy {
// name in metrics/histograms/histograms.xml.
enum DataReductionProxyBypassType {
// Bypass due to explicit instruction for the current request.
- // Not yet supported.
BYPASS_EVENT_TYPE_CURRENT = 0,
// Bypass the proxy for less than one minute.
@@ -64,13 +63,19 @@ enum DataReductionProxyBypassType {
// Contains instructions contained in the Chrome-Proxy header.
struct DataReductionProxyInfo {
- DataReductionProxyInfo() : bypass_all(false) {}
+ DataReductionProxyInfo()
+ : bypass_all(false), mark_proxies_as_bad(false) {}
// True if Chrome should bypass all available data reduction proxies. False
// if only the currently connected data reduction proxy should be bypassed.
bool bypass_all;
- // Amount of time to bypass the data reduction proxy or proxies.
+ // True iff Chrome should mark the data reduction proxy or proxies as bad for
+ // the period of time specified in |bypass_duration|.
+ bool mark_proxies_as_bad;
+
+ // Amount of time to bypass the data reduction proxy or proxies. This value is
+ // ignored if |mark_proxies_as_bad| is false.
base::TimeDelta bypass_duration;
};

Powered by Google App Engine
This is Rietveld 408576698