Chromium Code Reviews| 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; |