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

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

Issue 2010253003: Sending a data saver Pageload metrics pingback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 d9a82a7c4cb046aea9bbb09409e66ce673ea84c5..57d4affe96cd4e189476dd65c81e518250a2282e 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
@@ -96,33 +96,41 @@ bool IsLoFiSlowConnectionsOnlyViaFlags();
// Returns true if this client has the command line switch to disable Lo-Fi
// mode.
bool IsLoFiDisabledViaFlags();
// Returns true if this client has the command line switch to enable Lo-Fi
// previews. This means a preview should be requested instead of placeholders
// whenever Lo-Fi mode is on.
bool AreLoFiPreviewsEnabledViaFlags();
+// Returns true if this client has the command line switch to enable forced
+// pageload metrics pingbacks on every page load.
+bool IsForcePingbackEnabledViaFlags();
+
// Returns true if this client has the command line switch to show
// interstitials for data reduction proxy bypasses.
bool WarnIfNoDataReductionProxy();
// Returns true if this client is part of a field trial that sets the origin
// proxy server as quic://proxy.googlezip.net.
bool IsIncludedInQuicFieldTrial();
const char* GetQuicFieldTrialName();
// Returns true if the Data Reduction Proxy config client should be used.
bool IsConfigClientEnabled();
+// If the Data Reduction Proxy is used for a page load, the URL for the
+// Data Reduction Proxy Pageload Metrics service.
+GURL GetPingbackURL();
+
// If the Data Reduction Proxy config client is being used, the URL for the
// Data Reduction Proxy config service.
GURL GetConfigServiceURL();
// Returns true if the Data Reduction Proxy is forced to be enabled from the
// command line.
bool ShouldForceEnableDataReductionProxy();
// Returns true if the secure Data Reduction Proxy should be used until the
// secure proxy check fails.

Powered by Google App Engine
This is Rietveld 408576698