Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: third_party/WebKit/Source/core/inspector/AsyncCallTracker.h

Issue 1370373004: Revert of DevTools: extract V8DebuggerAgent interface, move it under .../inspector/v8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef AsyncCallTracker_h 31 #ifndef AsyncCallTracker_h
32 #define AsyncCallTracker_h 32 #define AsyncCallTracker_h
33 33
34 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "core/inspector/InstrumentingAgents.h" 35 #include "core/inspector/V8DebuggerAgent.h"
36 #include "core/inspector/v8/V8DebuggerAgent.h"
37 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
38 #include "wtf/Forward.h" 37 #include "wtf/Forward.h"
39 #include "wtf/HashMap.h" 38 #include "wtf/HashMap.h"
40 #include "wtf/Noncopyable.h" 39 #include "wtf/Noncopyable.h"
41 40
42 namespace blink { 41 namespace blink {
43 42
44 class EncodedFormData; 43 class EncodedFormData;
45 class Event; 44 class Event;
46 class EventListener; 45 class EventListener;
47 class EventTarget; 46 class EventTarget;
48 class ExecutionContext; 47 class ExecutionContext;
49 class ExecutionContextTask; 48 class ExecutionContextTask;
50 class HTTPHeaderMap; 49 class HTTPHeaderMap;
51 class KURL; 50 class KURL;
52 class MutationObserver; 51 class MutationObserver;
53 class ThreadableLoaderClient; 52 class ThreadableLoaderClient;
54 class XMLHttpRequest; 53 class XMLHttpRequest;
55 54
56 class CORE_EXPORT AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFi nalized<AsyncCallTracker> { 55 class CORE_EXPORT AsyncCallTracker final : public NoBaseWillBeGarbageCollectedFi nalized<AsyncCallTracker>, public V8DebuggerAgent::AsyncCallTrackingListener {
57 WTF_MAKE_NONCOPYABLE(AsyncCallTracker); 56 WTF_MAKE_NONCOPYABLE(AsyncCallTracker);
58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AsyncCallTracker); 57 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() override;
63 62
64 void asyncCallTrackingStateChanged(bool tracking); 63 // V8DebuggerAgent::AsyncCallTrackingListener implementation:
65 void resetAsyncOperations(); 64 void asyncCallTrackingStateChanged(bool tracking) override;
65 void resetAsyncOperations() override;
66 66
67 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot); 67 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot);
68 void didRemoveTimer(ExecutionContext*, int timerId); 68 void didRemoveTimer(ExecutionContext*, int timerId);
69 bool willFireTimer(ExecutionContext*, int timerId); 69 bool willFireTimer(ExecutionContext*, int timerId);
70 void didFireTimer() { didFireAsyncCall(); } 70 void didFireTimer() { didFireAsyncCall(); }
71 71
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(); }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/inspector/AsyncCallTracker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698