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

Unified Diff: content/common/service_worker/service_worker_types.h

Issue 2714423002: Rename SkipServiceWorker to ServiceWorkerMode (Closed)
Patch Set: typos-- Created 3 years, 10 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_request.h ('k') | content/public/renderer/associated_resource_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/service_worker/service_worker_types.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index e981e015e3a423fea5b35cf90ad84474202dd929..a2ace940c6361a298c66b92a0eb8387033ae633b 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -98,17 +98,18 @@ enum class FetchRedirectMode {
LAST = MANUAL_MODE
};
-// Indicates which types of ServiceWorkers should skip handling a request.
-enum class SkipServiceWorker {
- // Request can be handled both by a controlling same-origin worker and
- // a cross-origin foreign fetch service worker.
- NONE,
- // Request should not be handled by a same-origin controlling worker,
- // but can be intercepted by a foreign fetch service worker.
- CONTROLLING,
- // Request should skip all possible service workers.
+// Indicates which service workers will receive fetch events for this request.
+enum class ServiceWorkerMode {
+ // Relevant local and foreign service workers will get a fetch or
+ // foreignfetch event for this request.
ALL,
- LAST = ALL
+ // Only relevant foreign service workers will get a foreignfetch event for
+ // this request.
+ FOREIGN,
+ // Neither local nor foreign service workers will get events for this
+ // request.
+ NONE,
+ LAST = NONE
};
// Indicates how the service worker handled a fetch event.
« no previous file with comments | « content/common/resource_request.h ('k') | content/public/renderer/associated_resource_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698