Chromium Code Reviews| 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. |