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

Unified Diff: net/socket/next_proto.h

Issue 560573002: Introduce new SPDY Version UMA histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce new histogram with permanent values. Created 6 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/socket/next_proto.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/next_proto.h
diff --git a/net/socket/next_proto.h b/net/socket/next_proto.h
index 19ff55e0bc020fe3b9e3c213c1c6f5af9f985167..a56138099ed2b252d094532bc742e2c771f3e9f1 100644
--- a/net/socket/next_proto.h
+++ b/net/socket/next_proto.h
@@ -32,6 +32,14 @@ enum NextProto {
kProtoMaximumVersion = kProtoQUIC1SPDY3,
};
+// NextProto is contiguous, therefore values can change when protocols are
+// removed. This function returns invariant values, so that UMA histograms can
+// be combined for different releases.
+unsigned int SpdyProtoPermanentValue(NextProto protocol);
+
+// One larger than the maximum value SpdyProtoPermanentValue can return.
+const unsigned int spdyProtoPermanentValueBoundary = 5;
Alexei Svitkine (slow) 2014/09/11 18:29:58 I suggest just making an enum for the PermanentVal
Bence 2014/09/12 12:37:07 You're right, we need a proper enum here. This is
Alexei Svitkine (slow) 2014/09/12 14:38:08 That SGTM.
Bence 2014/09/12 20:16:56 Done.
+
// List of protocols to use for NPN, used for configuring HttpNetworkSessions.
typedef std::vector<NextProto> NextProtoVector;
« no previous file with comments | « no previous file | net/socket/next_proto.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698