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

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

Issue 205563006: Add a status code to install event handled message from Service Worker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/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 b52dd9ebe5772d1d1d532054c3a2122000eebe0b..c75d0d99d90f9e903d0e4b49c2813034f9676e87 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -24,6 +24,16 @@ const static int kInvalidServiceWorkerRequestId = -1;
const static int kInvalidServiceWorkerProviderId = -1;
+// Indicates how the service worker handled an install event.
+enum ServiceWorkerInstallEventResult {
+ // The service worker passed a promise to waitUntil that rejected.
dominicc (has gone to gerrit) 2014/03/26 01:28:01 that rejected -> that was rejected? Or rejected ne
falken 2014/03/26 07:53:56 Haha, right. I actually thought this was weird too
+ SERVICE_WORKER_INSTALL_EVENT_RESULT_REJECTED,
+ // The install event dispatch completed with no rejections.
+ SERVICE_WORKER_INSTALL_EVENT_RESULT_COMPLETED,
+ SERVICE_WORKER_INSTALL_EVENT_RESULT_LAST =
+ SERVICE_WORKER_INSTALL_EVENT_RESULT_COMPLETED
+};
+
// To dispatch fetch request from browser to child process.
// TODO(kinuko): This struct will definitely need more fields and
// we'll probably want to have response struct/class too.

Powered by Google App Engine
This is Rietveld 408576698