Chromium Code Reviews

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

Issue 1286643002: Fix UMA to track video data usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Init prefs in compression stats map Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc
index cdb096e113ddc55b0e205be2da696d442f35279c..81529633a155c0b9c724e846a4b96fc4d3a9040e 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc
@@ -36,10 +36,46 @@ const char kDailyContentLengthViaDataReductionProxy[] =
"data_reduction.daily_received_length_via_data_reduction_proxy";
// A List pref that contains daily totals of the size of all HTTP/HTTPS
+// content with application mime-type received via the data reduction proxy.
+const char kDailyContentLengthViaDataReductionProxyApplication[] =
+ "data_reduction.daily_received_length_via_data_reduction_proxy_application";
+
+// A List pref that contains daily totals of the size of all HTTP/HTTPS
+// content with video mime-type received via the data reduction proxy.
+const char kDailyContentLengthViaDataReductionProxyVideo[] =
+ "data_reduction.daily_received_length_via_data_reduction_proxy_video";
+
+// A List pref that contains daily totals of the size of all HTTP/HTTPS
+// content with unknown mime-type received via the data reduction proxy.
+const char kDailyContentLengthViaDataReductionProxyUnknown[] =
+ "data_reduction.daily_received_length_via_data_reduction_proxy_unknown";
+
+// A List pref that contains daily totals of the size of all HTTP/HTTPS
// content received while the data reduction proxy is enabled.
const char kDailyContentLengthWithDataReductionProxyEnabled[] =
"data_reduction.daily_received_length_with_data_reduction_proxy_enabled";
+// A List pref that contains daily totals of the size of all HTTP/HTTPS
+// content with application mime-type received while the data reduction proxy is
+// enabled.
+const char kDailyContentLengthWithDataReductionProxyEnabledApplication[] =
+ "data_reduction.daily_received_length_with_data_reduction_proxy_enabled_"
+ "application";
+
+// A List pref that contains daily totals of the size of all HTTP/HTTPS
+// content with video mime-type received while the data reduction proxy is
+// enabled.
+const char kDailyContentLengthWithDataReductionProxyEnabledVideo[] =
+ "data_reduction.daily_received_length_with_data_reduction_proxy_enabled_"
+ "video";
+
+// A List pref that contains daily totals of the size of all HTTP/HTTPS
+// content with unknown mime-type received while the data reduction proxy is
+// enabled.
+const char kDailyContentLengthWithDataReductionProxyEnabledUnknown[] =
+ "data_reduction.daily_received_length_with_data_reduction_proxy_enabled_"
+ "unknown";
+
// An int64 pref that contains an internal representation of midnight on the
// date of the last update to |kDailyHttp{Original,Received}ContentLength|.
const char kDailyHttpContentLengthLastUpdateDate[] =
@@ -50,21 +86,88 @@ const char kDailyHttpContentLengthLastUpdateDate[] =
const char kDailyHttpOriginalContentLength[] =
"data_reduction.daily_original_length";
+// A List pref that contains daily totals of the original size of all HTTP/HTTPS
+// content with application mime-type received from the network.
+const char kDailyHttpOriginalContentLengthApplication[] =
+ "data_reduction.daily_original_length_application";
+
+// A List pref that contains daily totals of the original size of all HTTP/HTTPS
+// content with video mime-type received from the network.
+const char kDailyHttpOriginalContentLengthVideo[] =
+ "data_reduction.daily_original_length_video";
+
+// A List pref that contains daily totals of the original size of all HTTP/HTTPS
+// content with unknown mime-type received from the network.
+const char kDailyHttpOriginalContentLengthUnknown[] =
+ "data_reduction.daily_original_length_unknown";
+
// A List pref that contains daily totals of the size of all HTTP/HTTPS content
// received from the network.
const char kDailyHttpReceivedContentLength[] =
"data_reduction.daily_received_length";
+// A List pref that contains daily totals of the size of all HTTP/HTTPS content
+// received with application mime-type from the network.
+const char kDailyHttpReceivedContentLengthApplication[] =
+ "data_reduction.daily_received_length_application";
+
+// A List pref that contains daily totals of the size of all HTTP/HTTPS content
+// received with video mime-type from the network.
+const char kDailyHttpReceivedContentLengthVideo[] =
+ "data_reduction.daily_received_length_video";
+
+// A List pref that contains daily totals of the size of all HTTP/HTTPS content
+// received with unknown mime-type from the network.
+const char kDailyHttpReceivedContentLengthUnknown[] =
+ "data_reduction.daily_received_length_unknown";
+
// A List pref that contains daily totals of the original size of all HTTP/HTTPS
// content received via the data reduction proxy.
const char kDailyOriginalContentLengthViaDataReductionProxy[] =
"data_reduction.daily_original_length_via_data_reduction_proxy";
// A List pref that contains daily totals of the original size of all HTTP/HTTPS
+// content with application mime-type received via the data reduction proxy.
+const char kDailyOriginalContentLengthViaDataReductionProxyApplication[] =
+ "data_reduction.daily_original_length_via_data_reduction_proxy_application";
+
+// A List pref that contains daily totals of the original size of all HTTP/HTTPS
+// content with video mime-type received via the data reduction proxy.
+const char kDailyOriginalContentLengthViaDataReductionProxyVideo[] =
+ "data_reduction.daily_original_length_via_data_reduction_proxy_video";
+
+// A List pref that contains daily totals of the original size of all HTTP/HTTPS
+// content with unknown mime-type received via the data reduction proxy.
+const char kDailyOriginalContentLengthViaDataReductionProxyUnknown[] =
+ "data_reduction.daily_original_length_via_data_reduction_proxy_unknown";
+
+// A List pref that contains daily totals of the original size of all HTTP/HTTPS
// content received while the data reduction proxy is enabled.
const char kDailyOriginalContentLengthWithDataReductionProxyEnabled[] =
"data_reduction.daily_original_length_with_data_reduction_proxy_enabled";
+// A List pref that contains daily totals of the original size of all HTTP/HTTPS
+// content with application mime type received while the data reduction proxy is
+// enabled.
+const char
+ kDailyOriginalContentLengthWithDataReductionProxyEnabledApplication[] =
+ "data_reduction.daily_original_length_with_data_reduction_proxy_"
+ "enabled_application";
+
+// A List pref that contains daily totals of the original size of all HTTP/HTTPS
+// content with video mime type received while the data reduction proxy is
+// enabled.
+const char kDailyOriginalContentLengthWithDataReductionProxyEnabledVideo[] =
+ "data_reduction.daily_original_length_with_data_reduction_proxy_enabled_"
+ "video";
+
+// A List pref that contains daily totals of the original size of all HTTP/HTTPS
+// content with unknown mime type received while the data reduction proxy is
+// enabled.
+const char kDailyOriginalContentLengthWithDataReductionProxyEnabledUnknown[] =
+ "data_reduction.daily_original_length_with_data_reduction_proxy_enabled_"
+ "unknown";
+
// String that specifies the origin allowed to use data reduction proxy
// authentication, if any.
const char kDataReductionProxy[] = "auth.spdyproxy.origin";
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine