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

Unified 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, 3 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/resource_response_info.h
diff --git a/content/public/common/resource_response_info.h b/content/public/common/resource_response_info.h
index 49b781cfefd57cf6b2d1c7139d66ee8b754a5751..778d8b2ebb9b3a8b34da6f45b98b7f0d42810ea6 100644
--- a/content/public/common/resource_response_info.h
+++ b/content/public/common/resource_response_info.h
@@ -101,6 +101,12 @@ struct ResourceResponseInfo {
// True if the response was fetched by a ServiceWorker.
bool was_fetched_via_service_worker;
+ // 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.
+ // is sent to a ServiceWorker but FetchEvent.respondWith is not called. So the
+ // renderer have to resend the request with skip service worker flag
+ // considering the CORS preflight logic.
+ bool was_fallback_required_by_service_worker;
+
// The original URL of the response which was fetched by the ServiceWorker.
// This may be empty if the response was created inside the ServiceWorker.
GURL original_url_via_service_worker;
« 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