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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params.h

Issue 836583002: Add support for field trial group to relax missing via header bypass logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unused include from aw_url_request_context_getter.cc Created 5 years, 11 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/common/data_reduction_proxy_params.h
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
index cba1871e8c5e9b02f7f0c3e37d6abdaf021ddba6..05f0e5bae3fb2f2b17f3da78bd7e58ed609031c0 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
@@ -86,6 +86,13 @@ class DataReductionProxyParams {
// the data reduction proxy via header is missing.
static bool IsIncludedInRemoveMissingViaHeaderOtherBypassFieldTrial();
+ // Returns true if this client is part of a field trial that relaxes the
+ // |MISSING_VIA_HEADER_OTHER| proxy bypass case. In this experiment, if a
+ // response with a data reduction proxy via header has been received through
+ // the proxy since the last network change, then don't bypass on missing via
+ // headers in responses with non-4xx response codes.
+ static bool IsIncludedInRelaxMissingViaHeaderOtherBypassFieldTrial();
+
// Returns true if this client is part of the field trial that should display
// a promotion for the data reduction proxy on Android One devices.
static bool IsIncludedInAndroidOnePromoFieldTrial(

Powered by Google App Engine
This is Rietveld 408576698