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

Unified Diff: net/http/http_server_properties.h

Issue 2359803003: Job Controller: clean up metrics logging about the job racing result (Closed)
Patch Set: nits Created 4 years, 3 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 | net/http/http_server_properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index f0ffcc5d7770d09e7b924ea23bd3be5193242b78..fd7be05d0fa3676ad640d7195b710b96d732db54 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -50,8 +50,20 @@ enum AlternateProtocolUsage {
ALTERNATE_PROTOCOL_USAGE_MAX,
};
+enum AlternativeProxyUsage {
tbansal1 2016/09/23 00:02:07 nit: this enum can also move to anonymous namespac
+ // Alternative Proxy was used without racing a normal connection.
+ ALTERNATIVE_PROXY_USAGE_NO_RACE = 0,
+ // Alternative Proxy was used by winning a race with a normal connection.
+ ALTERNATIVE_PROXY_USAGE_WON_RACE = 1,
+ // Alternative Proxy was not used by losing a race with a normal connection.
+ ALTERNATIVE_PROXY_USAGE_LOST_RACE = 2,
+ // Maximum value for the enum.
+ ALTERNATIVE_PROXY_USAGE_MAX,
+};
+
// Log a histogram to reflect |usage|.
-NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage);
+NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage,
+ bool proxy_server_used);
enum BrokenAlternateProtocolLocation {
BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0,
« no previous file with comments | « no previous file | net/http/http_server_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698