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

Unified Diff: content/common/resource_request.h

Issue 2105503002: Skip foreign fetch when the skipServiceWorker flag is set on a request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix resource loading Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/common/resource_request.h
diff --git a/content/common/resource_request.h b/content/common/resource_request.h
index c7b158f46af73ed0fff920e6c197826537c18e01..2e5161e320b684d97a884484fe2ecaecf7722b4b 100644
--- a/content/common/resource_request.h
+++ b/content/common/resource_request.h
@@ -93,8 +93,8 @@ struct CONTENT_EXPORT ResourceRequest {
// fetch() in the Service Worker script.
bool originated_from_service_worker = false;
- // True if the request should not be handled by the ServiceWorker.
- bool skip_service_worker = false;
+ // Whether or not the request should be handled by a ServiceWorker.
+ SkipServiceWorker skip_service_worker = SkipServiceWorker::NONE;
// The request mode passed to the ServiceWorker.
FetchRequestMode fetch_request_mode = FETCH_REQUEST_MODE_SAME_ORIGIN;

Powered by Google App Engine
This is Rietveld 408576698