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 #include "config.h" | 5 #include "config.h" |
6 #include "modules/serviceworkers/WaitUntilObserver.h" | 6 #include "modules/serviceworkers/WaitUntilObserver.h" |
7 | 7 |
8 #include "bindings/v8/ScriptFunction.h" | 8 #include "bindings/v8/ScriptFunction.h" |
9 #include "bindings/v8/ScriptPromise.h" | 9 #include "bindings/v8/ScriptPromise.h" |
10 #include "bindings/v8/ScriptValue.h" | 10 #include "bindings/v8/ScriptValue.h" |
11 #include "bindings/v8/V8Binding.h" | 11 #include "bindings/v8/V8Binding.h" |
12 #include "core/dom/ExecutionContext.h" | 12 #include "core/dom/ExecutionContext.h" |
13 #include "platform/NotImplemented.h" | 13 #include "platform/NotImplemented.h" |
14 #include "public/platform/WebServiceWorkerEventResult.h" | 14 #include "public/platform/WebServiceWorkerEventResult.h" |
15 #include "wtf/Assertions.h" | 15 #include "wtf/Assertions.h" |
16 #include "wtf/RefCounted.h" | 16 #include "wtf/RefCounted.h" |
17 #include "wtf/RefPtr.h" | 17 #include "wtf/RefPtr.h" |
| 18 #include <v8.h> |
18 | 19 |
19 namespace WebCore { | 20 namespace WebCore { |
20 | 21 |
21 class WaitUntilObserver::ThenFunction FINAL : public ScriptFunction { | 22 class WaitUntilObserver::ThenFunction FINAL : public ScriptFunction { |
22 public: | 23 public: |
23 enum ResolveType { | 24 enum ResolveType { |
24 Fulfilled, | 25 Fulfilled, |
25 Rejected, | 26 Rejected, |
26 }; | 27 }; |
27 | 28 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 client->didHandleActivateEvent(m_eventID, result); | 118 client->didHandleActivateEvent(m_eventID, result); |
118 break; | 119 break; |
119 case Install: | 120 case Install: |
120 client->didHandleInstallEvent(m_eventID, result); | 121 client->didHandleInstallEvent(m_eventID, result); |
121 break; | 122 break; |
122 } | 123 } |
123 observeContext(0); | 124 observeContext(0); |
124 } | 125 } |
125 | 126 |
126 } // namespace WebCore | 127 } // namespace WebCore |
OLD | NEW |