| Index: public/platform/WebServiceWorkerEventResult.h
|
| diff --git a/public/platform/WebServiceWorkerEventResult.h b/public/platform/WebServiceWorkerEventResult.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fddfcd06beb30441b5cd78654715cd56eee5bb2e
|
| --- /dev/null
|
| +++ b/public/platform/WebServiceWorkerEventResult.h
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef WebServiceWorkerEventResult_h
|
| +#define WebServiceWorkerEventResult_h
|
| +
|
| +namespace blink {
|
| +
|
| +// Indicates how the service worker handled an event.
|
| +enum WebServiceWorkerEventResult {
|
| + // The event dispatch completed with no rejections.
|
| + WebServiceWorkerEventResultCompleted = 0,
|
| + // The service worker associated the event with a promise that was rejected
|
| + // (e.g., the promise passed to waitUntil for an install event was rejected).
|
| + WebServiceWorkerEventResultRejected,
|
| + WebServiceWorkerEventResultLast = WebServiceWorkerEventResultRejected
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WebServiceWorkerEventResult_h
|
|
|