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

Side by Side Diff: Source/core/inspector/InspectorInstrumentation.h

Issue 114033002: DevTools: Capture async stacks for event listeners. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "core/storage/StorageArea.h" 47 #include "core/storage/StorageArea.h"
48 #include "modules/websockets/WebSocketFrame.h" 48 #include "modules/websockets/WebSocketFrame.h"
49 #include "platform/network/FormData.h" 49 #include "platform/network/FormData.h"
50 #include "platform/network/WebSocketHandshakeRequest.h" 50 #include "platform/network/WebSocketHandshakeRequest.h"
51 #include "platform/network/WebSocketHandshakeResponse.h" 51 #include "platform/network/WebSocketHandshakeResponse.h"
52 #include "wtf/RefPtr.h" 52 #include "wtf/RefPtr.h"
53 53
54 namespace WebCore { 54 namespace WebCore {
55 55
56 struct CSSParserString; 56 struct CSSParserString;
57 class DeviceOrientationData;
57 class Document; 58 class Document;
58 class Element; 59 class Element;
59 class DeviceOrientationData; 60 class EventTarget;
61 class ExecutionContext;
60 class GeolocationPosition; 62 class GeolocationPosition;
61 class GraphicsContext; 63 class GraphicsContext;
62 class GraphicsLayer; 64 class GraphicsLayer;
63 class InspectorTimelineAgent; 65 class InspectorTimelineAgent;
64 class InstrumentingAgents; 66 class InstrumentingAgents;
65 class RenderLayer; 67 class RenderLayer;
66 class ExecutionContext;
67 class ThreadableLoaderClient; 68 class ThreadableLoaderClient;
68 class WorkerGlobalScope; 69 class WorkerGlobalScope;
69 class WorkerGlobalScopeProxy; 70 class WorkerGlobalScopeProxy;
70 71
71 #define FAST_RETURN_IF_NO_FRONTENDS(value) if (!hasFrontends()) return value; 72 #define FAST_RETURN_IF_NO_FRONTENDS(value) if (!hasFrontends()) return value;
72 73
73 class InspectorInstrumentationCookie { 74 class InspectorInstrumentationCookie {
74 public: 75 public:
75 InspectorInstrumentationCookie(); 76 InspectorInstrumentationCookie();
76 InspectorInstrumentationCookie(InstrumentingAgents*, int); 77 InspectorInstrumentationCookie(InstrumentingAgents*, int);
(...skipping 25 matching lines...) Expand all
102 inline bool hasFrontends() { return FrontendCounter::s_frontendCounter; } 103 inline bool hasFrontends() { return FrontendCounter::s_frontendCounter; }
103 104
104 void registerInstrumentingAgents(InstrumentingAgents*); 105 void registerInstrumentingAgents(InstrumentingAgents*);
105 void unregisterInstrumentingAgents(InstrumentingAgents*); 106 void unregisterInstrumentingAgents(InstrumentingAgents*);
106 107
107 InspectorTimelineAgent* retrieveTimelineAgent(const InspectorInstrumentationCook ie&); 108 InspectorTimelineAgent* retrieveTimelineAgent(const InspectorInstrumentationCook ie&);
108 109
109 // Called from generated instrumentation code. 110 // Called from generated instrumentation code.
110 InstrumentingAgents* instrumentingAgentsFor(Page*); 111 InstrumentingAgents* instrumentingAgentsFor(Page*);
111 InstrumentingAgents* instrumentingAgentsFor(Frame*); 112 InstrumentingAgents* instrumentingAgentsFor(Frame*);
113 InstrumentingAgents* instrumentingAgentsFor(EventTarget*);
112 InstrumentingAgents* instrumentingAgentsFor(ExecutionContext*); 114 InstrumentingAgents* instrumentingAgentsFor(ExecutionContext*);
113 InstrumentingAgents* instrumentingAgentsFor(Document&); 115 InstrumentingAgents* instrumentingAgentsFor(Document&);
114 InstrumentingAgents* instrumentingAgentsFor(Document*); 116 InstrumentingAgents* instrumentingAgentsFor(Document*);
115 InstrumentingAgents* instrumentingAgentsFor(RenderObject*); 117 InstrumentingAgents* instrumentingAgentsFor(RenderObject*);
116 InstrumentingAgents* instrumentingAgentsFor(Node*); 118 InstrumentingAgents* instrumentingAgentsFor(Node*);
117 InstrumentingAgents* instrumentingAgentsFor(WorkerGlobalScope*); 119 InstrumentingAgents* instrumentingAgentsFor(WorkerGlobalScope*);
118 120
119 // Helper for the one above. 121 // Helper for the one above.
120 InstrumentingAgents* instrumentingAgentsForNonDocumentContext(ExecutionContext*) ; 122 InstrumentingAgents* instrumentingAgentsForNonDocumentContext(ExecutionContext*) ;
121 123
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 } // namespace WebCore 190 } // namespace WebCore
189 191
190 // This file will soon be generated 192 // This file will soon be generated
191 #include "InspectorInstrumentationInl.h" 193 #include "InspectorInstrumentationInl.h"
192 194
193 #include "InspectorInstrumentationCustomInl.h" 195 #include "InspectorInstrumentationCustomInl.h"
194 196
195 #include "InspectorOverridesInl.h" 197 #include "InspectorOverridesInl.h"
196 198
197 #endif // !defined(InspectorInstrumentation_h) 199 #endif // !defined(InspectorInstrumentation_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDebuggerAgent.cpp ('k') | Source/core/inspector/InspectorInstrumentation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698