| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 PromiseRejectionEvent_h | 5 #ifndef PromiseRejectionEvent_h |
| 6 #define PromiseRejectionEvent_h | 6 #define PromiseRejectionEvent_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/DOMWrapperWorld.h" | 8 #include "bindings/core/v8/DOMWrapperWorld.h" |
| 9 #include "bindings/core/v8/ScopedPersistent.h" | 9 #include "bindings/core/v8/ScopedPersistent.h" |
| 10 #include "bindings/core/v8/ScriptPromise.h" | 10 #include "bindings/core/v8/ScriptPromise.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 DECLARE_VIRTUAL_TRACE(); | 42 DECLARE_VIRTUAL_TRACE(); |
| 43 | 43 |
| 44 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 44 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 PromiseRejectionEvent(); | 47 PromiseRejectionEvent(); |
| 48 PromiseRejectionEvent(ScriptState*, const AtomicString&, const PromiseReject
ionEventInit&); | 48 PromiseRejectionEvent(ScriptState*, const AtomicString&, const PromiseReject
ionEventInit&); |
| 49 ~PromiseRejectionEvent() override; | 49 ~PromiseRejectionEvent() override; |
| 50 | 50 |
| 51 static void didCollectPromise(const v8::WeakCallbackInfo<PromiseRejectionEve
nt>&); | |
| 52 static void didCollectReason(const v8::WeakCallbackInfo<PromiseRejectionEven
t>&); | |
| 53 | |
| 54 RefPtr<ScriptState> m_scriptState; | 51 RefPtr<ScriptState> m_scriptState; |
| 55 ScopedPersistent<v8::Value> m_promise; | 52 ScopedPersistent<v8::Value> m_promise; |
| 56 ScopedPersistent<v8::Value> m_reason; | 53 ScopedPersistent<v8::Value> m_reason; |
| 57 }; | 54 }; |
| 58 | 55 |
| 59 } // namespace blink | 56 } // namespace blink |
| 60 | 57 |
| 61 #endif // PromiseRejectionEvent_h | 58 #endif // PromiseRejectionEvent_h |
| OLD | NEW |