Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/PromiseTracker.h

Issue 1758313002: DevTools: introduce collections shim to be backed by non-wtf in v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "platform/inspector_protocol/Allocator.h" 8 #include "platform/inspector_protocol/Allocator.h"
9 #include "platform/inspector_protocol/Collections.h"
9 #include "platform/inspector_protocol/Frontend.h" 10 #include "platform/inspector_protocol/Frontend.h"
10 #include "platform/inspector_protocol/TypeBuilder.h" 11 #include "platform/inspector_protocol/TypeBuilder.h"
11 #include "wtf/HashMap.h"
12 #include "wtf/PassOwnPtr.h" 12 #include "wtf/PassOwnPtr.h"
13 #include "wtf/Vector.h"
14 #include <v8.h> 13 #include <v8.h>
15 14
16 namespace blink { 15 namespace blink {
17 16
18 class V8DebuggerAgentImpl; 17 class V8DebuggerAgentImpl;
19 18
20 class PromiseTracker final { 19 class PromiseTracker final {
21 PROTOCOL_DISALLOW_COPY(PromiseTracker); 20 PROTOCOL_DISALLOW_COPY(PromiseTracker);
22 public: 21 public:
23 static PassOwnPtr<PromiseTracker> create(V8DebuggerAgentImpl* agent, v8::Iso late* isolate) 22 static PassOwnPtr<PromiseTracker> create(V8DebuggerAgentImpl* agent, v8::Iso late* isolate)
(...skipping 20 matching lines...) Expand all
44 void promiseCollected(int id); 43 void promiseCollected(int id);
45 44
46 int m_circularSequentialId; 45 int m_circularSequentialId;
47 bool m_isEnabled; 46 bool m_isEnabled;
48 bool m_captureStacks; 47 bool m_captureStacks;
49 V8DebuggerAgentImpl* m_agent; 48 V8DebuggerAgentImpl* m_agent;
50 49
51 v8::Isolate* m_isolate; 50 v8::Isolate* m_isolate;
52 v8::Persistent<v8::NativeWeakMap> m_promiseToId; 51 v8::Persistent<v8::NativeWeakMap> m_promiseToId;
53 52
54 HashMap<int, OwnPtr<PromiseWrapper>> m_idToPromise; 53 protocol::HashMap<int, OwnPtr<PromiseWrapper>> m_idToPromise;
55 }; 54 };
56 55
57 } // namespace blink 56 } // namespace blink
58 57
59 #endif // !defined(PromiseTracker_h) 58 #endif // !defined(PromiseTracker_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698