1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WebServiceWorkerEventResult_h
6 #define WebServiceWorkerEventResult_h
10 // Indicates how the service worker handled an event.
11 enum WebServiceWorkerEventResult
{
12 // The event dispatch completed with no rejections.
13 WebServiceWorkerEventResultCompleted
= 0,
14 // The service worker associated the event with a promise that was rejected
15 // (e.g., the promise passed to waitUntil for an install event was rejected).
16 WebServiceWorkerEventResultRejected
,
17 WebServiceWorkerEventResultLast
= WebServiceWorkerEventResultRejected
22 #endif // WebServiceWorkerEventResult_h