| 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/ToV8.h" |
| 11 #include "platform/ScriptForbiddenScope.h" | 11 #include "platform/ScriptForbiddenScope.h" |
| 12 #include "wtf/Noncopyable.h" | 12 #include "platform/wtf/Noncopyable.h" |
| 13 #include "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 |
| 21 // returned each time. | 21 // returned each time. |
| 22 // | 22 // |
| 23 // ScriptPromiseProperty does not keep Promises or worlds alive to | 23 // ScriptPromiseProperty does not keep Promises or worlds alive to |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 Visitor* visitor) { | 184 Visitor* visitor) { |
| 185 TraceIfNeeded<HolderType>::trace(visitor, m_holder); | 185 TraceIfNeeded<HolderType>::trace(visitor, m_holder); |
| 186 TraceIfNeeded<ResolvedType>::trace(visitor, m_resolved); | 186 TraceIfNeeded<ResolvedType>::trace(visitor, m_resolved); |
| 187 TraceIfNeeded<RejectedType>::trace(visitor, m_rejected); | 187 TraceIfNeeded<RejectedType>::trace(visitor, m_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 |