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/core/v8/ScopedPersistent.h" | 8 #include "bindings/core/v8/ScopedPersistent.h" |
9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
11 #include "bindings/core/v8/ToV8.h" | 11 #include "bindings/core/v8/ToV8ForCore.h" |
12 #include "core/CoreExport.h" | 12 #include "core/CoreExport.h" |
13 #include "core/dom/ExecutionContext.h" | 13 #include "core/dom/ExecutionContext.h" |
14 #include "core/dom/SuspendableObject.h" | 14 #include "core/dom/SuspendableObject.h" |
15 #include "platform/ScriptForbiddenScope.h" | 15 #include "platform/ScriptForbiddenScope.h" |
16 #include "platform/Timer.h" | 16 #include "platform/Timer.h" |
17 #include "platform/heap/Handle.h" | 17 #include "platform/heap/Handle.h" |
18 #include "platform/heap/SelfKeepAlive.h" | 18 #include "platform/heap/SelfKeepAlive.h" |
19 #include "v8/include/v8.h" | 19 #include "v8/include/v8.h" |
20 | 20 |
21 namespace blink { | 21 namespace blink { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 #if DCHECK_IS_ON() | 174 #if DCHECK_IS_ON() |
175 // True if promise() is called. | 175 // True if promise() is called. |
176 bool is_promise_called_ = false; | 176 bool is_promise_called_ = false; |
177 #endif | 177 #endif |
178 }; | 178 }; |
179 | 179 |
180 } // namespace blink | 180 } // namespace blink |
181 | 181 |
182 #endif // ScriptPromiseResolver_h | 182 #endif // ScriptPromiseResolver_h |
OLD | NEW |