Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / modules / serviceworker / WebServiceWorkerEventResult.h
blobfddfcd06beb30441b5cd78654715cd56eee5bb2e
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
8 namespace blink {
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
20 } // namespace blink
22 #endif // WebServiceWorkerEventResult_h