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

Side by Side Diff: Source/core/inspector/V8AsyncCallTracker.h

Issue 1308273007: Make classes and structures in core/inspector fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/inspector/ScriptCallFrame.h ('k') | Source/core/inspector/v8/ScriptBreakpoint.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 V8AsyncCallTracker_h 5 #ifndef V8AsyncCallTracker_h
6 #define V8AsyncCallTracker_h 6 #define V8AsyncCallTracker_h
7 7
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "core/inspector/V8DebuggerAgent.h" 9 #include "core/inspector/V8DebuggerAgent.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "wtf/Forward.h" 11 #include "wtf/Forward.h"
12 #include "wtf/HashMap.h" 12 #include "wtf/HashMap.h"
13 #include "wtf/Noncopyable.h" 13 #include "wtf/Noncopyable.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class ScriptState; 17 class ScriptState;
18 18
19 class V8AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFinalized<V8 AsyncCallTracker>, public ScriptState::Observer, public V8DebuggerAgent::AsyncCa llTrackingListener { 19 class V8AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFinalized<V8 AsyncCallTracker>, public ScriptState::Observer, public V8DebuggerAgent::AsyncCa llTrackingListener {
20 WTF_MAKE_NONCOPYABLE(V8AsyncCallTracker); 20 WTF_MAKE_NONCOPYABLE(V8AsyncCallTracker);
21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8AsyncCallTracker); 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(V8AsyncCallTracker);
22 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(V8AsyncCallTracker);
22 public: 23 public:
23 static PassOwnPtrWillBeRawPtr<V8AsyncCallTracker> create(V8DebuggerAgent* de buggerAgent) 24 static PassOwnPtrWillBeRawPtr<V8AsyncCallTracker> create(V8DebuggerAgent* de buggerAgent)
24 { 25 {
25 return adoptPtrWillBeNoop(new V8AsyncCallTracker(debuggerAgent)); 26 return adoptPtrWillBeNoop(new V8AsyncCallTracker(debuggerAgent));
26 } 27 }
27 28
28 ~V8AsyncCallTracker(); 29 ~V8AsyncCallTracker();
29 DECLARE_TRACE(); 30 DECLARE_TRACE();
30 31
31 // V8DebuggerAgent::AsyncCallTrackingListener implementation: 32 // V8DebuggerAgent::AsyncCallTrackingListener implementation:
(...skipping 12 matching lines...) Expand all
44 void willHandleV8AsyncTask(ScriptState*, const String& eventName, int id); 45 void willHandleV8AsyncTask(ScriptState*, const String& eventName, int id);
45 46
46 class V8ContextAsyncOperations; 47 class V8ContextAsyncOperations;
47 WillBeHeapHashMap<RefPtr<ScriptState>, OwnPtrWillBeMember<V8ContextAsyncOper ations>> m_contextAsyncOperationMap; 48 WillBeHeapHashMap<RefPtr<ScriptState>, OwnPtrWillBeMember<V8ContextAsyncOper ations>> m_contextAsyncOperationMap;
48 RawPtrWillBeMember<V8DebuggerAgent> m_debuggerAgent; 49 RawPtrWillBeMember<V8DebuggerAgent> m_debuggerAgent;
49 }; 50 };
50 51
51 } // namespace blink 52 } // namespace blink
52 53
53 #endif // V8AsyncCallTracker_h 54 #endif // V8AsyncCallTracker_h
OLDNEW
« no previous file with comments | « Source/core/inspector/ScriptCallFrame.h ('k') | Source/core/inspector/v8/ScriptBreakpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698