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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc

Issue 1455333004: Add "q=preview" directive on main frame requests on poor networks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@deciderAddLoFiHeader
Patch Set: tbansal comments Created 5 years, 1 month 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_switches.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc
index 2e8306454093433af0ddfbcf47b6cc3f2e067cbd..55164c67149dea834ac5d7b3f3f8d3fbdf117cc9 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc
@@ -51,6 +51,12 @@ const char kDataReductionProxyLoFiValueDisabled[] = "disabled";
const char kDataReductionProxyLoFiValueSlowConnectionsOnly[] =
"slow-connections-only";
+// Enables preview mode for Lo-Fi. This means a preview should be requested
+// instead of placeholders whenever Lo-Fi mode is on. Lo-Fi must also be enabled
+// via a flag or field trial.
+const char kEnableDataReductionProxyLoFiPreview[] =
+ "enable-data-reduction-proxy-lo-fi-preview";
+
// Disables the origin of the data reduction proxy dev.
const char kDisableDataReductionProxyDev[] =
"disable-spdy-proxy-dev-auth-origin";

Powered by Google App Engine
This is Rietveld 408576698