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

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: rephrase SkipServiceWorker comments. 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
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/service_worker/service_worker_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_request.h
diff --git a/content/common/resource_request.h b/content/common/resource_request.h
index c7b158f46af73ed0fff920e6c197826537c18e01..83263cc5c1ccd40cdbae11011e65143a32e1fd3d 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;
+ // Indicates which types of ServiceWorkers should skip handling this request.
+ SkipServiceWorker skip_service_worker = SkipServiceWorker::NONE;
// The request mode passed to the ServiceWorker.
FetchRequestMode fetch_request_mode = FETCH_REQUEST_MODE_SAME_ORIGIN;
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/service_worker/service_worker_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698