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 ScriptPromiseResolver_h | 5 #ifndef ScriptPromiseResolver_h |
6 #define ScriptPromiseResolver_h | 6 #define ScriptPromiseResolver_h |
7 | 7 |
8 #include "bindings/v8/ScopedPersistent.h" | 8 #include "bindings/core/v8/ScopedPersistent.h" |
9 #include "bindings/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
10 #include "bindings/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
11 #include "bindings/v8/V8Binding.h" | 11 #include "bindings/core/v8/V8Binding.h" |
12 #include "core/dom/ActiveDOMObject.h" | 12 #include "core/dom/ActiveDOMObject.h" |
13 #include "core/dom/ExecutionContext.h" | 13 #include "core/dom/ExecutionContext.h" |
14 #include "platform/Timer.h" | 14 #include "platform/Timer.h" |
15 #include "wtf/RefCounted.h" | 15 #include "wtf/RefCounted.h" |
16 #include "wtf/Vector.h" | 16 #include "wtf/Vector.h" |
17 #include <v8.h> | 17 #include <v8.h> |
18 | 18 |
19 namespace WebCore { | 19 namespace WebCore { |
20 | 20 |
21 // This class wraps v8::Promise::Resolver and provides the following | 21 // This class wraps v8::Promise::Resolver and provides the following |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ScopedPersistent<v8::Value> m_value; | 136 ScopedPersistent<v8::Value> m_value; |
137 #if ASSERT_ENABLED | 137 #if ASSERT_ENABLED |
138 // True if promise() is called. | 138 // True if promise() is called. |
139 bool m_isPromiseCalled; | 139 bool m_isPromiseCalled; |
140 #endif | 140 #endif |
141 }; | 141 }; |
142 | 142 |
143 } // namespace WebCore | 143 } // namespace WebCore |
144 | 144 |
145 #endif // #ifndef ScriptPromiseResolver_h | 145 #endif // #ifndef ScriptPromiseResolver_h |
OLD | NEW |