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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h

Issue 1141023002: Record UMA about the response's proxy_server in the DRP bypass logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on master again Created 5 years, 7 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
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h
index a5ffeeca179fb1b03534f2c245c6b06855dc7c3c..ff0db600eee016574ae06cc5c98d383587cdab03 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h
@@ -25,6 +25,18 @@ class DataReductionProxyConfig;
class DataReductionProxyBypassProtocol
: public net::NetworkChangeNotifier::IPAddressObserver {
public:
+ // Enum values that can be reported for the
+ // DataReductionProxy.ResponseProxyServerStatus histogram. These values must
+ // be kept in sync with their counterparts in histograms.xml. Visible here for
+ // testing purposes.
+ enum ResponseProxyServerStatus {
+ RESPONSE_PROXY_SERVER_STATUS_EMPTY = 0,
+ RESPONSE_PROXY_SERVER_STATUS_DRP,
+ RESPONSE_PROXY_SERVER_STATUS_NON_DRP_NO_VIA,
+ RESPONSE_PROXY_SERVER_STATUS_NON_DRP_WITH_VIA,
+ RESPONSE_PROXY_SERVER_STATUS_MAX
+ };
+
// Constructs a DataReductionProxyBypassProtocol object. |config| must be
// non-NULL and outlive |this|.
DataReductionProxyBypassProtocol(DataReductionProxyConfig* config);
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698