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

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

Issue 858173002: DevTools: rename AsyncCallChainMap to AsyncOperationMap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
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/InspectorDebuggerAgent.h" 9 #include "core/inspector/InspectorDebuggerAgent.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 13 matching lines...) Expand all
24 static PassOwnPtrWillBeRawPtr<V8AsyncCallTracker> create(InspectorDebuggerAg ent* debuggerAgent) 24 static PassOwnPtrWillBeRawPtr<V8AsyncCallTracker> create(InspectorDebuggerAg ent* debuggerAgent)
25 { 25 {
26 return adoptPtrWillBeNoop(new V8AsyncCallTracker(debuggerAgent)); 26 return adoptPtrWillBeNoop(new V8AsyncCallTracker(debuggerAgent));
27 } 27 }
28 28
29 ~V8AsyncCallTracker(); 29 ~V8AsyncCallTracker();
30 void trace(Visitor*); 30 void trace(Visitor*);
31 31
32 // InspectorDebuggerAgent::AsyncCallTrackingListener implementation: 32 // InspectorDebuggerAgent::AsyncCallTrackingListener implementation:
33 void asyncCallTrackingStateChanged(bool tracking) override; 33 void asyncCallTrackingStateChanged(bool tracking) override;
34 void resetAsyncCallChains() override; 34 void resetAsyncOperations() override;
35 35
36 void didReceiveV8AsyncTaskEvent(ScriptState*, const String& eventType, const String& eventName, int id); 36 void didReceiveV8AsyncTaskEvent(ScriptState*, const String& eventType, const String& eventName, int id);
37 37
38 // ScriptState::Observer implementation: 38 // ScriptState::Observer implementation:
39 void willDisposeScriptState(ScriptState*) override; 39 void willDisposeScriptState(ScriptState*) override;
40 40
41 private: 41 private:
42 explicit V8AsyncCallTracker(InspectorDebuggerAgent*); 42 explicit V8AsyncCallTracker(InspectorDebuggerAgent*);
43 43
44 void didEnqueueV8AsyncTask(ScriptState*, const String& eventName, int id); 44 void didEnqueueV8AsyncTask(ScriptState*, const String& eventName, int id);
45 void willHandleV8AsyncTask(ScriptState*, const String& eventName, int id); 45 void willHandleV8AsyncTask(ScriptState*, const String& eventName, int id);
46 46
47 class V8ContextAsyncCallChains; 47 class V8ContextAsyncOperations;
48 using V8ContextAsyncChainMap = WillBeHeapHashMap<ScriptState*, OwnPtrWillBeM ember<V8ContextAsyncCallChains> >; 48 WillBeHeapHashMap<ScriptState*, OwnPtrWillBeMember<V8ContextAsyncOperations> > m_contextAsyncOperationMap;
49 V8ContextAsyncChainMap m_contextAsyncCallChainMap;
50 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 49 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
51 }; 50 };
52 51
53 } // namespace blink 52 } // namespace blink
54 53
55 #endif // V8AsyncCallTracker_h 54 #endif // V8AsyncCallTracker_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.cpp ('k') | Source/core/inspector/V8AsyncCallTracker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698