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

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

Issue 1157823003: Refactoring timing info for ServiceWorker controlled requests [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « content/public/common/resource_response.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // considering the CORS preflight logic. 113 // considering the CORS preflight logic.
114 bool was_fallback_required_by_service_worker; 114 bool was_fallback_required_by_service_worker;
115 115
116 // The original URL of the response which was fetched by the ServiceWorker. 116 // The original URL of the response which was fetched by the ServiceWorker.
117 // This may be empty if the response was created inside the ServiceWorker. 117 // This may be empty if the response was created inside the ServiceWorker.
118 GURL original_url_via_service_worker; 118 GURL original_url_via_service_worker;
119 119
120 // The type of the response which was fetched by the ServiceWorker. 120 // The type of the response which was fetched by the ServiceWorker.
121 blink::WebServiceWorkerResponseType response_type_via_service_worker; 121 blink::WebServiceWorkerResponseType response_type_via_service_worker;
122 122
123 // ServiceWorker Timing Information. These will be set if the response is 123 // The time immediately before starting ServiceWorker, or if the worker is
124 // provided by the ServiceWorker, or kept empty. 124 // already running, the time immediately before dispatching fetch event.
125 base::TimeTicks service_worker_fetch_start; 125 // If the response is not provided by the ServiceWorker, it is kept empty.
126 base::TimeTicks service_worker_fetch_ready; 126 // TODO(ksakamoto): Move this to net::LoadTimingInfo.
127 base::TimeTicks service_worker_fetch_end; 127 base::TimeTicks service_worker_start_time;
128 }; 128 };
129 129
130 } // namespace content 130 } // namespace content
131 131
132 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ 132 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_
OLDNEW
« no previous file with comments | « content/public/common/resource_response.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698