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

Side by Side Diff: net/http/http_response_info.h

Issue 2119623002: Add metrics to track HTTP/0.9 usage for main frames and subresources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to comments Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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 16 matching lines...) Expand all
27 27
28 class NET_EXPORT HttpResponseInfo { 28 class NET_EXPORT HttpResponseInfo {
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, 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_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_HTTP2_14 = 6, // HTTP/2 draft-14.
43 CONNECTION_INFO_HTTP2_15 = 7, // HTTP/2 draft-15. 43 CONNECTION_INFO_HTTP2_15 = 7, // HTTP/2 draft-15.
44 CONNECTION_INFO_HTTP0_9 = 8,
45 CONNECTION_INFO_HTTP1_0 = 9,
mmenke 2016/06/30 22:19:18 I'm keeping the weird order here, so obsolete hist
44 NUM_OF_CONNECTION_INFOS, 46 NUM_OF_CONNECTION_INFOS,
45 }; 47 };
46 48
47 HttpResponseInfo(); 49 HttpResponseInfo();
48 HttpResponseInfo(const HttpResponseInfo& rhs); 50 HttpResponseInfo(const HttpResponseInfo& rhs);
49 ~HttpResponseInfo(); 51 ~HttpResponseInfo();
50 HttpResponseInfo& operator=(const HttpResponseInfo& rhs); 52 HttpResponseInfo& operator=(const HttpResponseInfo& rhs);
51 // Even though we could get away with the copy ctor and default operator=, 53 // Even though we could get away with the copy ctor and default operator=,
52 // that would prevent us from doing a bunch of forward declaration. 54 // that would prevent us from doing a bunch of forward declaration.
53 55
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 scoped_refptr<IOBufferWithSize> metadata; 159 scoped_refptr<IOBufferWithSize> metadata;
158 160
159 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); 161 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto);
160 162
161 static std::string ConnectionInfoToString(ConnectionInfo connection_info); 163 static std::string ConnectionInfoToString(ConnectionInfo connection_info);
162 }; 164 };
163 165
164 } // namespace net 166 } // namespace net
165 167
166 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ 168 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698