| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 class Event; | 43 class Event; |
| 44 class EventListener; | 44 class EventListener; |
| 45 class EventTarget; | 45 class EventTarget; |
| 46 class ExecutionContext; | 46 class ExecutionContext; |
| 47 class ExecutionContextTask; | 47 class ExecutionContextTask; |
| 48 class FormData; | 48 class FormData; |
| 49 class HTTPHeaderMap; | 49 class HTTPHeaderMap; |
| 50 class KURL; | 50 class KURL; |
| 51 class MutationObserver; | 51 class MutationObserver; |
| 52 class PerformanceObserver; |
| 52 class ThreadableLoaderClient; | 53 class ThreadableLoaderClient; |
| 53 class XMLHttpRequest; | 54 class XMLHttpRequest; |
| 54 | 55 |
| 55 class CORE_EXPORT AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFi
nalized<AsyncCallTracker>, public V8DebuggerAgent::AsyncCallTrackingListener { | 56 class CORE_EXPORT AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFi
nalized<AsyncCallTracker>, public V8DebuggerAgent::AsyncCallTrackingListener { |
| 56 WTF_MAKE_NONCOPYABLE(AsyncCallTracker); | 57 WTF_MAKE_NONCOPYABLE(AsyncCallTracker); |
| 57 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AsyncCallTracker); | 58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AsyncCallTracker); |
| 58 public: | 59 public: |
| 59 AsyncCallTracker(V8DebuggerAgent*, InstrumentingAgents*); | 60 AsyncCallTracker(V8DebuggerAgent*, InstrumentingAgents*); |
| 60 ~AsyncCallTracker() override; | 61 ~AsyncCallTracker() override; |
| 61 | 62 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 79 void didHandleEvent() { didFireAsyncCall(); } | 80 void didHandleEvent() { didFireAsyncCall(); } |
| 80 | 81 |
| 81 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin
g& method, const KURL&, bool async, PassRefPtr<FormData> body, const HTTPHeaderM
ap& headers, bool includeCrendentials); | 82 void willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient*, const AtomicStrin
g& method, const KURL&, bool async, PassRefPtr<FormData> body, const HTTPHeaderM
ap& headers, bool includeCrendentials); |
| 82 void didDispatchXHRLoadendEvent(XMLHttpRequest*); | 83 void didDispatchXHRLoadendEvent(XMLHttpRequest*); |
| 83 | 84 |
| 84 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); | 85 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); |
| 85 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); | 86 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); |
| 86 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); | 87 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); |
| 87 void didDeliverMutationRecords() { didFireAsyncCall(); } | 88 void didDeliverMutationRecords() { didFireAsyncCall(); } |
| 88 | 89 |
| 90 void didEnqueuePerformanceObserverEntries(ExecutionContext*, PerformanceObse
rver*); |
| 91 void didClearAllPerformanceObservations(ExecutionContext*, PerformanceObserv
er*); |
| 92 void willDeliverPerformanceObservations(ExecutionContext*, PerformanceObserv
er*); |
| 93 void didDeliverPerformanceObservations() { didFireAsyncCall(); }; |
| 94 |
| 89 void didPostExecutionContextTask(ExecutionContext*, ExecutionContextTask*); | 95 void didPostExecutionContextTask(ExecutionContext*, ExecutionContextTask*); |
| 90 void didKillAllExecutionContextTasks(ExecutionContext*); | 96 void didKillAllExecutionContextTasks(ExecutionContext*); |
| 91 void willPerformExecutionContextTask(ExecutionContext*, ExecutionContextTask
*); | 97 void willPerformExecutionContextTask(ExecutionContext*, ExecutionContextTask
*); |
| 92 void didPerformExecutionContextTask() { didFireAsyncCall(); } | 98 void didPerformExecutionContextTask() { didFireAsyncCall(); } |
| 93 | 99 |
| 94 int traceAsyncOperationStarting(ExecutionContext*, const String& operationNa
me, int prevOperationId = 0); | 100 int traceAsyncOperationStarting(ExecutionContext*, const String& operationNa
me, int prevOperationId = 0); |
| 95 void traceAsyncOperationCompleted(ExecutionContext*, int operationId); | 101 void traceAsyncOperationCompleted(ExecutionContext*, int operationId); |
| 96 void traceAsyncOperationCompletedCallbackStarting(ExecutionContext*, int ope
rationId); | 102 void traceAsyncOperationCompletedCallbackStarting(ExecutionContext*, int ope
rationId); |
| 97 void traceAsyncCallbackStarting(ExecutionContext*, int operationId); | 103 void traceAsyncCallbackStarting(ExecutionContext*, int operationId); |
| 98 void traceAsyncCallbackCompleted() { didFireAsyncCall(); } | 104 void traceAsyncCallbackCompleted() { didFireAsyncCall(); } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 112 | 118 |
| 113 using ExecutionContextDataMap = WillBeHeapHashMap<RawPtrWillBeMember<Executi
onContext>, OwnPtrWillBeMember<ExecutionContextData>>; | 119 using ExecutionContextDataMap = WillBeHeapHashMap<RawPtrWillBeMember<Executi
onContext>, OwnPtrWillBeMember<ExecutionContextData>>; |
| 114 ExecutionContextDataMap m_executionContextDataMap; | 120 ExecutionContextDataMap m_executionContextDataMap; |
| 115 RawPtrWillBeMember<V8DebuggerAgent> m_debuggerAgent; | 121 RawPtrWillBeMember<V8DebuggerAgent> m_debuggerAgent; |
| 116 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 122 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 117 }; | 123 }; |
| 118 | 124 |
| 119 } // namespace blink | 125 } // namespace blink |
| 120 | 126 |
| 121 #endif // AsyncCallTracker_h | 127 #endif // AsyncCallTracker_h |
| OLD | NEW |