OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 class ExecutionContext; | 48 class ExecutionContext; |
49 class ExecutionContextTask; | 49 class ExecutionContextTask; |
50 class HTTPHeaderMap; | 50 class HTTPHeaderMap; |
51 class KURL; | 51 class KURL; |
52 class MutationObserver; | 52 class MutationObserver; |
53 class ThreadableLoaderClient; | 53 class ThreadableLoaderClient; |
54 class XMLHttpRequest; | 54 class XMLHttpRequest; |
55 | 55 |
56 class CORE_EXPORT AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFi
nalized<AsyncCallTracker> { | 56 class CORE_EXPORT AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFi
nalized<AsyncCallTracker> { |
57 WTF_MAKE_NONCOPYABLE(AsyncCallTracker); | 57 WTF_MAKE_NONCOPYABLE(AsyncCallTracker); |
58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AsyncCallTracker); | |
59 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(AsyncCallTracker); | 58 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(AsyncCallTracker); |
60 public: | 59 public: |
61 AsyncCallTracker(V8DebuggerAgent*, InstrumentingAgents*); | 60 AsyncCallTracker(V8DebuggerAgent*, InstrumentingAgents*); |
62 ~AsyncCallTracker(); | 61 ~AsyncCallTracker(); |
63 | 62 |
64 void asyncCallTrackingStateChanged(bool tracking); | 63 void asyncCallTrackingStateChanged(bool tracking); |
65 void resetAsyncOperations(); | 64 void resetAsyncOperations(); |
66 | 65 |
67 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl
eShot); | 66 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl
eShot); |
68 void didRemoveTimer(ExecutionContext*, int timerId); | 67 void didRemoveTimer(ExecutionContext*, int timerId); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 void willHandleXHREvent(XMLHttpRequest*, Event*); | 105 void willHandleXHREvent(XMLHttpRequest*, Event*); |
107 | 106 |
108 bool isKnownAsyncOperationId(ExecutionContext*, int operationId) const; | 107 bool isKnownAsyncOperationId(ExecutionContext*, int operationId) const; |
109 void willFireAsyncCall(int operationId); | 108 void willFireAsyncCall(int operationId); |
110 void didFireAsyncCall(); | 109 void didFireAsyncCall(); |
111 | 110 |
112 ExecutionContextData* createContextDataIfNeeded(ExecutionContext*); | 111 ExecutionContextData* createContextDataIfNeeded(ExecutionContext*); |
113 | 112 |
114 using ExecutionContextDataMap = WillBeHeapHashMap<RawPtrWillBeMember<Executi
onContext>, OwnPtrWillBeMember<ExecutionContextData>>; | 113 using ExecutionContextDataMap = WillBeHeapHashMap<RawPtrWillBeMember<Executi
onContext>, OwnPtrWillBeMember<ExecutionContextData>>; |
115 ExecutionContextDataMap m_executionContextDataMap; | 114 ExecutionContextDataMap m_executionContextDataMap; |
116 RawPtrWillBeMember<V8DebuggerAgent> m_debuggerAgent; | 115 V8DebuggerAgent* m_debuggerAgent; |
117 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 116 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
118 }; | 117 }; |
119 | 118 |
120 } // namespace blink | 119 } // namespace blink |
121 | 120 |
122 #endif // AsyncCallTracker_h | 121 #endif // AsyncCallTracker_h |
OLD | NEW |