Chromium Code Reviews| Index: public/platform/WebServiceWorkerEventResult.h |
| diff --git a/public/platform/WebServiceWorkerEventResult.h b/public/platform/WebServiceWorkerEventResult.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5562bddd19c147db593294062b88ddf7453d2225 |
| --- /dev/null |
| +++ b/public/platform/WebServiceWorkerEventResult.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| + |
|
tkent
2014/03/26 08:46:03
The blank line should be removed.
falken
2014/03/26 14:38:33
Done.
|
| +// 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 |