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 ScriptPromiseProperty_h | 5 #ifndef ScriptPromiseProperty_h |
6 #define ScriptPromiseProperty_h | 6 #define ScriptPromiseProperty_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptPromisePropertyBase.h" | 9 #include "bindings/core/v8/ScriptPromisePropertyBase.h" |
10 #include "bindings/core/v8/ToV8.h" | 10 #include "bindings/core/v8/ToV8ForCore.h" |
11 #include "platform/ScriptForbiddenScope.h" | 11 #include "platform/ScriptForbiddenScope.h" |
12 #include "platform/wtf/Noncopyable.h" | 12 #include "platform/wtf/Noncopyable.h" |
13 #include "platform/wtf/PassRefPtr.h" | 13 #include "platform/wtf/PassRefPtr.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class ExecutionContext; | 17 class ExecutionContext; |
18 | 18 |
19 // ScriptPromiseProperty is a helper for implementing a DOM method or | 19 // ScriptPromiseProperty is a helper for implementing a DOM method or |
20 // attribute whose value is a Promise, and the same Promise must be | 20 // attribute whose value is a Promise, and the same Promise must be |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 Visitor* visitor) { | 184 Visitor* visitor) { |
185 TraceIfNeeded<HolderType>::Trace(visitor, holder_); | 185 TraceIfNeeded<HolderType>::Trace(visitor, holder_); |
186 TraceIfNeeded<ResolvedType>::Trace(visitor, resolved_); | 186 TraceIfNeeded<ResolvedType>::Trace(visitor, resolved_); |
187 TraceIfNeeded<RejectedType>::Trace(visitor, rejected_); | 187 TraceIfNeeded<RejectedType>::Trace(visitor, rejected_); |
188 ScriptPromisePropertyBase::Trace(visitor); | 188 ScriptPromisePropertyBase::Trace(visitor); |
189 } | 189 } |
190 | 190 |
191 } // namespace blink | 191 } // namespace blink |
192 | 192 |
193 #endif // ScriptPromiseProperty_h | 193 #endif // ScriptPromiseProperty_h |
OLD | NEW |