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 PromiseTracker_h | 5 #ifndef PromiseTracker_h |
6 #define PromiseTracker_h | 6 #define PromiseTracker_h |
7 | 7 |
8 #include "core/InspectorTypeBuilder.h" | 8 #include "core/InspectorTypeBuilder.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "wtf/HashMap.h" | 10 #include "wtf/HashMap.h" |
11 #include "wtf/Noncopyable.h" | 11 #include "wtf/Noncopyable.h" |
12 #include "wtf/RefPtr.h" | 12 #include "wtf/RefPtr.h" |
13 #include "wtf/Vector.h" | 13 #include "wtf/Vector.h" |
14 #include <v8.h> | 14 #include <v8.h> |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class ScriptState; | 18 class ScriptState; |
19 class ScriptValue; | 19 class ScriptValue; |
20 | 20 |
21 class PromiseTracker FINAL : public NoBaseWillBeGarbageCollected<PromiseTracker>
{ | 21 class PromiseTracker final : public NoBaseWillBeGarbageCollected<PromiseTracker>
{ |
22 WTF_MAKE_NONCOPYABLE(PromiseTracker); | 22 WTF_MAKE_NONCOPYABLE(PromiseTracker); |
23 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(PromiseTracker); | 23 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(PromiseTracker); |
24 public: | 24 public: |
25 static PassOwnPtrWillBeRawPtr<PromiseTracker> create() | 25 static PassOwnPtrWillBeRawPtr<PromiseTracker> create() |
26 { | 26 { |
27 return adoptPtrWillBeNoop(new PromiseTracker()); | 27 return adoptPtrWillBeNoop(new PromiseTracker()); |
28 } | 28 } |
29 | 29 |
30 bool isEnabled() const { return m_isEnabled; } | 30 bool isEnabled() const { return m_isEnabled; } |
31 void setEnabled(bool); | 31 void setEnabled(bool); |
(...skipping 24 matching lines...) Expand all Loading... |
56 | 56 |
57 int m_circularSequentialId; | 57 int m_circularSequentialId; |
58 PromiseDataMap m_promiseDataMap; | 58 PromiseDataMap m_promiseDataMap; |
59 bool m_isEnabled; | 59 bool m_isEnabled; |
60 PromiseIdToDataMap m_promiseIdToDataMap; | 60 PromiseIdToDataMap m_promiseIdToDataMap; |
61 }; | 61 }; |
62 | 62 |
63 } // namespace blink | 63 } // namespace blink |
64 | 64 |
65 #endif // !defined(PromiseTracker_h) | 65 #endif // !defined(PromiseTracker_h) |
OLD | NEW |