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 <memory> |
8 #include "bindings/core/v8/SourceLocation.h" | 9 #include "bindings/core/v8/SourceLocation.h" |
9 #include "platform/loader/fetch/AccessControlStatus.h" | 10 #include "platform/loader/fetch/AccessControlStatus.h" |
10 #include "wtf/Deque.h" | 11 #include "wtf/Deque.h" |
11 #include "wtf/Forward.h" | 12 #include "wtf/Forward.h" |
12 #include "wtf/RefCounted.h" | 13 #include "wtf/RefCounted.h" |
13 #include "wtf/Vector.h" | 14 #include "wtf/Vector.h" |
14 #include <memory> | |
15 | 15 |
16 namespace v8 { | 16 namespace v8 { |
17 class PromiseRejectMessage; | 17 class PromiseRejectMessage; |
18 }; | 18 }; |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 | 21 |
22 class ScriptState; | 22 class ScriptState; |
23 | 23 |
24 class RejectedPromises final : public RefCounted<RejectedPromises> { | 24 class RejectedPromises final : public RefCounted<RejectedPromises> { |
(...skipping 27 matching lines...) Expand all Loading... |
52 void processQueueNow(std::unique_ptr<MessageQueue>); | 52 void processQueueNow(std::unique_ptr<MessageQueue>); |
53 void revokeNow(std::unique_ptr<Message>); | 53 void revokeNow(std::unique_ptr<Message>); |
54 | 54 |
55 MessageQueue m_queue; | 55 MessageQueue m_queue; |
56 Vector<std::unique_ptr<Message>> m_reportedAsErrors; | 56 Vector<std::unique_ptr<Message>> m_reportedAsErrors; |
57 }; | 57 }; |
58 | 58 |
59 } // namespace blink | 59 } // namespace blink |
60 | 60 |
61 #endif // RejectedPromises_h | 61 #endif // RejectedPromises_h |
OLD | NEW |