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