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 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 27 matching lines...) Expand all Loading... |
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 V8ContextAsyncOperations; | 47 class V8ContextAsyncOperations; |
48 WillBeHeapHashMap<ScriptState*, OwnPtrWillBeMember<V8ContextAsyncOperations>
> m_contextAsyncOperationMap; | 48 WillBeHeapHashMap<ScriptState*, OwnPtrWillBeMember<V8ContextAsyncOperations>
> m_contextAsyncOperationMap; |
49 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; | 49 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace blink | 52 } // namespace blink |
53 | 53 |
54 #endif // V8AsyncCallTracker_h | 54 #endif // V8AsyncCallTracker_h |
OLD | NEW |