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