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

Side by Side Diff: content/public/common/resource_response_info.h

Issue 2654663004: [Not for review] record detailed time breakdown of SW related requests.
Patch Set: add stream uma Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ 6 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 23 matching lines...) Expand all
34 ~ResourceResponseInfo(); 34 ~ResourceResponseInfo();
35 35
36 // The time at which the request was made that resulted in this response. 36 // The time at which the request was made that resulted in this response.
37 // For cached responses, this time could be "far" in the past. 37 // For cached responses, this time could be "far" in the past.
38 base::Time request_time; 38 base::Time request_time;
39 39
40 // The time at which the response headers were received. For cached 40 // The time at which the response headers were received. For cached
41 // responses, this time could be "far" in the past. 41 // responses, this time could be "far" in the past.
42 base::Time response_time; 42 base::Time response_time;
43 43
44 // TimeTicks::Now() when the browser sent the response to the renderer.
45 base::TimeTicks response_start;
46
44 // The response headers or NULL if the URL type does not support headers. 47 // The response headers or NULL if the URL type does not support headers.
45 scoped_refptr<net::HttpResponseHeaders> headers; 48 scoped_refptr<net::HttpResponseHeaders> headers;
46 49
47 // The mime type of the response. This may be a derived value. 50 // The mime type of the response. This may be a derived value.
48 std::string mime_type; 51 std::string mime_type;
49 52
50 // The character encoding of the response or none if not applicable to the 53 // The character encoding of the response or none if not applicable to the
51 // response's mime type. This may be a derived value. 54 // response's mime type. This may be a derived value.
52 std::string charset; 55 std::string charset;
53 56
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; 179 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps;
177 180
178 // In case this is a CORS response fetched by a ServiceWorker, this is the 181 // In case this is a CORS response fetched by a ServiceWorker, this is the
179 // set of headers that should be exposed. 182 // set of headers that should be exposed.
180 std::vector<std::string> cors_exposed_header_names; 183 std::vector<std::string> cors_exposed_header_names;
181 }; 184 };
182 185
183 } // namespace content 186 } // namespace content
184 187
185 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ 188 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698