| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 35 #include "core/inspector/V8DebuggerAgent.h" | 35 #include "core/inspector/V8DebuggerAgent.h" |
| 36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 38 #include "wtf/HashMap.h" | 38 #include "wtf/HashMap.h" |
| 39 #include "wtf/Noncopyable.h" | 39 #include "wtf/Noncopyable.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class EncodedFormData; |
| 43 class Event; | 44 class Event; |
| 44 class EventListener; | 45 class EventListener; |
| 45 class EventTarget; | 46 class EventTarget; |
| 46 class ExecutionContext; | 47 class ExecutionContext; |
| 47 class ExecutionContextTask; | 48 class ExecutionContextTask; |
| 48 class FormData; | |
| 49 class HTTPHeaderMap; | 49 class HTTPHeaderMap; |
| 50 class KURL; | 50 class KURL; |
| 51 class MutationObserver; | 51 class MutationObserver; |
| 52 class ThreadableLoaderClient; | 52 class ThreadableLoaderClient; |
| 53 class XMLHttpRequest; | 53 class XMLHttpRequest; |
| 54 | 54 |
| 55 class CORE_EXPORT AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFi
nalized<AsyncCallTracker>, public V8DebuggerAgent::AsyncCallTrackingListener { | 55 class CORE_EXPORT AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFi
nalized<AsyncCallTracker>, public V8DebuggerAgent::AsyncCallTrackingListener { |
| 56 WTF_MAKE_NONCOPYABLE(AsyncCallTracker); | 56 WTF_MAKE_NONCOPYABLE(AsyncCallTracker); |
| 57 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AsyncCallTracker); | 57 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AsyncCallTracker); |
| 58 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(AsyncCallTracker); | 58 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(AsyncCallTracker); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 72 void didRequestAnimationFrame(ExecutionContext*, int callbackId); | 72 void didRequestAnimationFrame(ExecutionContext*, int callbackId); |
| 73 void didCancelAnimationFrame(ExecutionContext*, int callbackId); | 73 void didCancelAnimationFrame(ExecutionContext*, int callbackId); |
| 74 bool willFireAnimationFrame(ExecutionContext*, int callbackId); | 74 bool willFireAnimationFrame(ExecutionContext*, int callbackId); |
| 75 void didFireAnimationFrame() { didFireAsyncCall(); } | 75 void didFireAnimationFrame() { didFireAsyncCall(); } |
| 76 | 76 |
| 77 void didEnqueueEvent(EventTarget*, Event*); | 77 void didEnqueueEvent(EventTarget*, Event*); |
| 78 void didRemoveEvent(EventTarget*, Event*); | 78 void didRemoveEvent(EventTarget*, Event*); |
| 79 void willHandleEvent(EventTarget*, Event*, EventListener*, bool useCapture); | 79 void willHandleEvent(EventTarget*, Event*, EventListener*, bool useCapture); |
| 80 void didHandleEvent() { didFireAsyncCall(); } | 80 void didHandleEvent() { didFireAsyncCall(); } |
| 81 | 81 |
| 82 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<EncodedFormData> body, const HTTP
HeaderMap& headers, bool includeCrendentials); |
| 83 void didDispatchXHRLoadendEvent(XMLHttpRequest*); | 83 void didDispatchXHRLoadendEvent(XMLHttpRequest*); |
| 84 | 84 |
| 85 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); | 85 void didEnqueueMutationRecord(ExecutionContext*, MutationObserver*); |
| 86 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); | 86 void didClearAllMutationRecords(ExecutionContext*, MutationObserver*); |
| 87 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); | 87 void willDeliverMutationRecords(ExecutionContext*, MutationObserver*); |
| 88 void didDeliverMutationRecords() { didFireAsyncCall(); } | 88 void didDeliverMutationRecords() { didFireAsyncCall(); } |
| 89 | 89 |
| 90 void didPostExecutionContextTask(ExecutionContext*, ExecutionContextTask*); | 90 void didPostExecutionContextTask(ExecutionContext*, ExecutionContextTask*); |
| 91 void didKillAllExecutionContextTasks(ExecutionContext*); | 91 void didKillAllExecutionContextTasks(ExecutionContext*); |
| 92 void willPerformExecutionContextTask(ExecutionContext*, ExecutionContextTask
*); | 92 void willPerformExecutionContextTask(ExecutionContext*, ExecutionContextTask
*); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 113 | 113 |
| 114 using ExecutionContextDataMap = WillBeHeapHashMap<RawPtrWillBeMember<Executi
onContext>, OwnPtrWillBeMember<ExecutionContextData>>; | 114 using ExecutionContextDataMap = WillBeHeapHashMap<RawPtrWillBeMember<Executi
onContext>, OwnPtrWillBeMember<ExecutionContextData>>; |
| 115 ExecutionContextDataMap m_executionContextDataMap; | 115 ExecutionContextDataMap m_executionContextDataMap; |
| 116 RawPtrWillBeMember<V8DebuggerAgent> m_debuggerAgent; | 116 RawPtrWillBeMember<V8DebuggerAgent> m_debuggerAgent; |
| 117 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 117 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace blink | 120 } // namespace blink |
| 121 | 121 |
| 122 #endif // AsyncCallTracker_h | 122 #endif // AsyncCallTracker_h |
| OLD | NEW |