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

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

Issue 603913002: [ServiceWorker] Add was_fallback_required flag to ResourceResponseInfo. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ByServiceWorker suffix Created 6 years, 2 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/common/resource_messages.h ('k') | content/public/common/resource_response_info.cc » ('j') | 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // NPN protocol negotiated with the server. 95 // NPN protocol negotiated with the server.
96 std::string npn_negotiated_protocol; 96 std::string npn_negotiated_protocol;
97 97
98 // Remote address of the socket which fetched this resource. 98 // Remote address of the socket which fetched this resource.
99 net::HostPortPair socket_address; 99 net::HostPortPair socket_address;
100 100
101 // True if the response was fetched by a ServiceWorker. 101 // True if the response was fetched by a ServiceWorker.
102 bool was_fetched_via_service_worker; 102 bool was_fetched_via_service_worker;
103 103
104 // True when the request which mode is |CORS| or |CORS-with-forced-preflight|
yhirano 2014/09/26 04:27:25 s/which/whose/
horo 2014/09/26 05:07:58 Done.
105 // is sent to a ServiceWorker but FetchEvent.respondWith is not called. So the
106 // renderer have to resend the request with skip service worker flag
107 // considering the CORS preflight logic.
108 bool was_fallback_required_by_service_worker;
109
104 // The original URL of the response which was fetched by the ServiceWorker. 110 // The original URL of the response which was fetched by the ServiceWorker.
105 // This may be empty if the response was created inside the ServiceWorker. 111 // This may be empty if the response was created inside the ServiceWorker.
106 GURL original_url_via_service_worker; 112 GURL original_url_via_service_worker;
107 113
108 // ServiceWorker Timing Information. These will be set if the response is 114 // ServiceWorker Timing Information. These will be set if the response is
109 // provided by the ServiceWorker, or kept empty. 115 // provided by the ServiceWorker, or kept empty.
110 base::TimeTicks service_worker_fetch_start; 116 base::TimeTicks service_worker_fetch_start;
111 base::TimeTicks service_worker_fetch_ready; 117 base::TimeTicks service_worker_fetch_ready;
112 base::TimeTicks service_worker_fetch_end; 118 base::TimeTicks service_worker_fetch_end;
113 }; 119 };
114 120
115 } // namespace content 121 } // namespace content
116 122
117 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ 123 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/public/common/resource_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698