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 RejectedPromises_h | 5 #ifndef RejectedPromises_h |
6 #define RejectedPromises_h | 6 #define RejectedPromises_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 10 matching lines...) Expand all Loading... |
21 public: | 21 public: |
22 static PassOwnPtrWillBeRawPtr<RejectedPromises> create() | 22 static PassOwnPtrWillBeRawPtr<RejectedPromises> create() |
23 { | 23 { |
24 return adoptPtrWillBeNoop(new RejectedPromises); | 24 return adoptPtrWillBeNoop(new RejectedPromises); |
25 } | 25 } |
26 | 26 |
27 RejectedPromises(); | 27 RejectedPromises(); |
28 void dispose(); | 28 void dispose(); |
29 DECLARE_TRACE(); | 29 DECLARE_TRACE(); |
30 | 30 |
31 void rejectedWithNoHandler(ScriptState*, v8::PromiseRejectMessage, const Str
ing& errorMessage, const String& resourceName, int scriptId, int lineNumber, int
columnNumber, PassRefPtrWillBeRawPtr<ScriptCallStack>); | 31 void add(ScriptState*, v8::PromiseRejectMessage, const String& errorMessage,
const String& resourceName, int scriptId, int lineNumber, int columnNumber, Pas
sRefPtrWillBeRawPtr<ScriptCallStack>); |
32 void handlerAdded(v8::PromiseRejectMessage); | |
33 | 32 |
34 void processQueue(); | 33 void processQueue(); |
35 | 34 |
36 private: | 35 private: |
37 class Message; | 36 class Message; |
38 WillBeHeapDeque<OwnPtrWillBeMember<Message>> m_queue; | 37 WillBeHeapDeque<OwnPtrWillBeMember<Message>> m_queue; |
39 WillBeHeapDeque<OwnPtrWillBeMember<Message>> m_reportedAsErrors; | |
40 }; | 38 }; |
41 | 39 |
42 } // namespace blink | 40 } // namespace blink |
43 | 41 |
44 #endif // RejectedPromises_h | 42 #endif // RejectedPromises_h |
OLD | NEW |