| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_HTTP_HTTP_RESPONSE_INFO_H_ | 5 #ifndef NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| 6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_ | 6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 public: | 29 public: |
| 30 // Describes the kind of connection used to fetch this response. | 30 // Describes the kind of connection used to fetch this response. |
| 31 // | 31 // |
| 32 // NOTE: Please keep in sync with Net.HttpResponseInfo.ConnectionInfo | 32 // NOTE: Please keep in sync with Net.HttpResponseInfo.ConnectionInfo |
| 33 // histogram. Because of that, and also because these values are persisted to | 33 // histogram. Because of that, and also because these values are persisted to |
| 34 // the cache, please make sure not to delete or reorder values. | 34 // the cache, please make sure not to delete or reorder values. |
| 35 enum ConnectionInfo { | 35 enum ConnectionInfo { |
| 36 CONNECTION_INFO_UNKNOWN = 0, | 36 CONNECTION_INFO_UNKNOWN = 0, |
| 37 CONNECTION_INFO_HTTP1_1 = 1, | 37 CONNECTION_INFO_HTTP1_1 = 1, |
| 38 CONNECTION_INFO_DEPRECATED_SPDY2 = 2, | 38 CONNECTION_INFO_DEPRECATED_SPDY2 = 2, |
| 39 CONNECTION_INFO_SPDY3 = 3, | 39 CONNECTION_INFO_DEPRECATED_SPDY3 = 3, |
| 40 CONNECTION_INFO_HTTP2 = 4, // HTTP/2. | 40 CONNECTION_INFO_HTTP2 = 4, // HTTP/2. |
| 41 CONNECTION_INFO_QUIC1_SPDY3 = 5, | 41 CONNECTION_INFO_QUIC1_SPDY3 = 5, |
| 42 CONNECTION_INFO_HTTP2_14 = 6, // HTTP/2 draft-14. | 42 CONNECTION_INFO_DEPRECATED_HTTP2_14 = 6, // HTTP/2 draft-14. |
| 43 CONNECTION_INFO_HTTP2_15 = 7, // HTTP/2 draft-15. | 43 CONNECTION_INFO_DEPRECATED_HTTP2_15 = 7, // HTTP/2 draft-15. |
| 44 CONNECTION_INFO_HTTP0_9 = 8, | 44 CONNECTION_INFO_HTTP0_9 = 8, |
| 45 CONNECTION_INFO_HTTP1_0 = 9, | 45 CONNECTION_INFO_HTTP1_0 = 9, |
| 46 NUM_OF_CONNECTION_INFOS, | 46 NUM_OF_CONNECTION_INFOS, |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 // Used for categorizing transactions for reporting in histograms. | 49 // Used for categorizing transactions for reporting in histograms. |
| 50 // CacheEntryStatus covers relatively common use cases being measured and | 50 // CacheEntryStatus covers relatively common use cases being measured and |
| 51 // considered for optimization. Many use cases that are more complex or | 51 // considered for optimization. Many use cases that are more complex or |
| 52 // uncommon are binned as OTHER, and details are not reported. | 52 // uncommon are binned as OTHER, and details are not reported. |
| 53 // NOTE: This enumeration is used in histograms, so please do not add entries | 53 // NOTE: This enumeration is used in histograms, so please do not add entries |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 scoped_refptr<IOBufferWithSize> metadata; | 190 scoped_refptr<IOBufferWithSize> metadata; |
| 191 | 191 |
| 192 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); | 192 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); |
| 193 | 193 |
| 194 static std::string ConnectionInfoToString(ConnectionInfo connection_info); | 194 static std::string ConnectionInfoToString(ConnectionInfo connection_info); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace net | 197 } // namespace net |
| 198 | 198 |
| 199 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 199 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| OLD | NEW |