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. |