Home | History | Annotate | Download | only in inspector

Lines Matching refs:inspectorAgent

50 class InspectorAgent;
69 typedef pair<InspectorAgent*, int> InspectorInstrumentationCookie;
178 static void bindInspectorAgent(Page* page, InspectorAgent* inspectorAgent) { inspectorAgents().set(page, inspectorAgent); }
191 static void didClearWindowObjectInWorldImpl(InspectorAgent*, Frame*, DOMWrapperWorld*);
192 static void inspectedPageDestroyedImpl(InspectorAgent*);
194 static void willInsertDOMNodeImpl(InspectorAgent*, Node* node, Node* parent);
195 static void didInsertDOMNodeImpl(InspectorAgent*, Node*);
196 static void willRemoveDOMNodeImpl(InspectorAgent*, Node*);
197 static void didRemoveDOMNodeImpl(InspectorAgent*, Node*);
198 static void willModifyDOMAttrImpl(InspectorAgent*, Element*);
199 static void didModifyDOMAttrImpl(InspectorAgent*, Element*);
200 static void characterDataModifiedImpl(InspectorAgent*, CharacterData*);
201 static void didInvalidateStyleAttrImpl(InspectorAgent*, Node*);
203 static void mouseDidMoveOverElementImpl(InspectorAgent*, const HitTestResult&, unsigned modifierFlags);
204 static bool handleMousePressImpl(InspectorAgent*);
206 static void willSendXMLHttpRequestImpl(InspectorAgent*, const String& url);
207 static void didScheduleResourceRequestImpl(InspectorAgent*, const String& url);
208 static void didInstallTimerImpl(InspectorAgent*, int timerId, int timeout, bool singleShot);
209 static void didRemoveTimerImpl(InspectorAgent*, int timerId);
211 static InspectorInstrumentationCookie willCallFunctionImpl(InspectorAgent*, const String& scriptName, int scriptLine);
213 static InspectorInstrumentationCookie willChangeXHRReadyStateImpl(InspectorAgent*, XMLHttpRequest* request);
215 static InspectorInstrumentationCookie willDispatchEventImpl(InspectorAgent*, const Event& event, DOMWindow* window, Node* node, const Vector<EventContext>& ancestors);
217 static InspectorInstrumentationCookie willDispatchEventOnWindowImpl(InspectorAgent*, const Event& event, DOMWindow* window);
219 static InspectorInstrumentationCookie willEvaluateScriptImpl(InspectorAgent*, const String& url, int lineNumber);
221 static InspectorInstrumentationCookie willFireTimerImpl(InspectorAgent*, int timerId);
223 static InspectorInstrumentationCookie willLayoutImpl(InspectorAgent*);
225 static InspectorInstrumentationCookie willLoadXHRImpl(InspectorAgent*, XMLHttpRequest* request);
227 static InspectorInstrumentationCookie willPaintImpl(InspectorAgent*, const IntRect& rect);
229 static InspectorInstrumentationCookie willRecalculateStyleImpl(InspectorAgent*);
232 static void applyUserAgentOverrideImpl(InspectorAgent*, String*);
233 static void willSendRequestImpl(InspectorAgent*, unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse& redirectResponse);
234 static void markResourceAsCachedImpl(InspectorAgent*, unsigned long identifier);
235 static void didLoadResourceFromMemoryCacheImpl(InspectorAgent*, DocumentLoader*, const CachedResource*);
236 static InspectorInstrumentationCookie willReceiveResourceDataImpl(InspectorAgent*, unsigned long identifier);
238 static InspectorInstrumentationCookie willReceiveResourceResponseImpl(InspectorAgent*, unsigned long identifier, const ResourceResponse&);
244 static void didReceiveContentLengthImpl(InspectorAgent*, unsigned long identifier, int dataLength, int encodedDataLength);
245 static void didFinishLoadingImpl(InspectorAgent*, unsigned long identifier, double finishTime);
246 static void didFailLoadingImpl(InspectorAgent*, unsigned long identifier, const ResourceError&);
247 static void resourceRetrievedByXMLHttpRequestImpl(InspectorAgent*, unsigned long identifier, const String& sourceString, const String& url, const String& sendURL, unsigned sendLineNumber);
248 static void scriptImportedImpl(InspectorAgent*, unsigned long identifier, const String& sourceString);
249 static void domContentLoadedEventFiredImpl(InspectorAgent*, Frame*, const KURL&);
250 static void loadEventFiredImpl(InspectorAgent*, Frame*, const KURL&);
251 static void frameDetachedFromParentImpl(InspectorAgent*, Frame*);
252 static void didCommitLoadImpl(Page*, InspectorAgent*, DocumentLoader*);
254 static InspectorInstrumentationCookie willWriteHTMLImpl(InspectorAgent*, unsigned int length, unsigned int startLine);
257 static void addMessageToConsoleImpl(InspectorAgent*, MessageSource, MessageType, MessageLevel, const String& message, PassRefPtr<ScriptArguments>, PassRefPtr<ScriptCallStack>);
258 static void addMessageToConsoleImpl(InspectorAgent*, MessageSource, MessageType, MessageLevel, const String& message, unsigned lineNumber, const String& sourceID);
259 static void consoleCountImpl(InspectorAgent*, PassRefPtr<ScriptArguments>, PassRefPtr<ScriptCallStack>);
260 static void startConsoleTimingImpl(InspectorAgent*, const String& title);
261 InspectorAgent*, const String& title, PassRefPtr<ScriptCallStack>);
262 static void consoleMarkTimelineImpl(InspectorAgent*, PassRefPtr<ScriptArguments>);
265 static void addStartProfilingMessageToConsoleImpl(InspectorAgent*, const String& title, unsigned lineNumber, const String& sourceURL);
266 static void addProfileImpl(InspectorAgent*, RefPtr<ScriptProfile>, PassRefPtr<ScriptCallStack>);
267 static String getCurrentUserInitiatedProfileNameImpl(InspectorAgent*, bool incrementProfileNumber);
268 static bool profilerEnabledImpl(InspectorAgent*);
272 static void didOpenDatabaseImpl(InspectorAgent*, PassRefPtr<Database>, const String& domain, const String& name, const String& version);
276 static void didUseDOMStorageImpl(InspectorAgent*, StorageArea*, bool isLocalStorage, Frame*);
280 static void didCreateWorkerImpl(InspectorAgent*, intptr_t id, const String& url, bool isSharedWorker);
281 static void didDestroyWorkerImpl(InspectorAgent*, intptr_t id);
285 static void didCreateWebSocketImpl(InspectorAgent*, unsigned long identifier, const KURL& requestURL, const KURL& documentURL);
286 static void willSendWebSocketHandshakeRequestImpl(InspectorAgent*, unsigned long identifier, const WebSocketHandshakeRequest&);
287 static void didReceiveWebSocketHandshakeResponseImpl(InspectorAgent*, unsigned long identifier, const WebSocketHandshakeResponse&);
288 static void didCloseWebSocketImpl(InspectorAgent*, unsigned long identifier);
292 static void networkStateChangedImpl(InspectorAgent*);
293 static void updateApplicationCacheStatusImpl(InspectorAgent*, Frame*);
296 static InspectorAgent* inspectorAgentForFrame(Frame*);
297 static InspectorAgent* inspectorAgentForContext(ScriptExecutionContext*);
298 static InspectorAgent* inspectorAgentForPage(Page*);
299 static InspectorAgent* inspectorAgentWithFrontendForContext(ScriptExecutionContext*);
300 static InspectorAgent* inspectorAgentWithFrontendForDocument(Document*);
301 static InspectorAgent* inspectorAgentWithFrontendForFrame(Frame*);
302 static InspectorAgent* inspectorAgentWithFrontendForPage(Page*);
304 static bool hasFrontend(InspectorAgent*);
305 static void pauseOnNativeEventIfNeeded(InspectorAgent*, const String& categoryType, const String& eventName, bool synchronous);
306 static void cancelPauseOnNativeEvent(InspectorAgent*);
307 static InspectorTimelineAgent* retrieveTimelineAgent(InspectorAgent*);
309 static InspectorResourceAgent* retrieveResourceAgent(InspectorAgent*);
310 static InspectorPageAgent* retrievePageAgent(InspectorAgent*);
312 static HashMap<Page*, InspectorAgent*>& inspectorAgents();
320 if (InspectorAgent* inspectorAgent = inspectorAgentForFrame(frame))
321 didClearWindowObjectInWorldImpl(inspectorAgent, frame, world);
328 if (InspectorAgent* inspectorAgent = inspectorAgentForPage(page))
329 inspectedPageDestroyedImpl(inspectorAgent);
336 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document))
337 willInsertDOMNodeImpl(inspectorAgent, node, parent);
344 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document))
345 didInsertDOMNodeImpl(inspectorAgent, node);
352 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document)) {
353 willRemoveDOMNodeImpl(inspectorAgent, node);
354 didRemoveDOMNodeImpl(inspectorAgent, node);
362 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document))
363 willModifyDOMAttrImpl(inspectorAgent, element);
370 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document))
371 didModifyDOMAttrImpl(inspectorAgent, element);
378 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document))
379 didInvalidateStyleAttrImpl(inspectorAgent, node);
386 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForPage(page))
387 mouseDidMoveOverElementImpl(inspectorAgent, result, modifierFlags);
394 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForPage(page))
395 return handleMousePressImpl(inspectorAgent);
403 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document))
404 characterDataModifiedImpl(inspectorAgent, characterData);
411 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForContext(context))
412 willSendXMLHttpRequestImpl(inspectorAgent, url);
419 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document))
420 didScheduleResourceRequestImpl(inspectorAgent, url);
427 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForContext(context))
428 didInstallTimerImpl(inspectorAgent, timerId, timeout, singleShot);
435 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForContext(context))
436 didRemoveTimerImpl(inspectorAgent, timerId);
444 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForFrame(frame))
445 return willCallFunctionImpl(inspectorAgent, scriptName, scriptLine);
461 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForContext(context))
462 return willChangeXHRReadyStateImpl(inspectorAgent, request);
478 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document))
479 return willDispatchEventImpl(inspectorAgent, event, window, node, ancestors);
495 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForFrame(frame))
496 return willDispatchEventOnWindowImpl(inspectorAgent, event, window);
512 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForFrame(frame))
513 return willEvaluateScriptImpl(inspectorAgent, url, lineNumber);
529 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForContext(context))
530 return willFireTimerImpl(inspectorAgent, timerId);
546 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForFrame(frame))
547 return willLayoutImpl(inspectorAgent);
563 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForContext(context))
564 return willLoadXHRImpl(inspectorAgent, request);
580 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForFrame(frame))
581 return willPaintImpl(inspectorAgent, rect);
597 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document))
598 return willRecalculateStyleImpl(inspectorAgent);
614 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForFrame(frame))
615 applyUserAgentOverrideImpl(inspectorAgent, userAgent);
622 if (InspectorAgent* ic = inspectorAgentForFrame(frame))
644 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForFrame(frame))
645 return willReceiveResourceDataImpl(inspectorAgent, identifier);
661 if (InspectorAgent* inspectorAgent = inspectorAgentForFrame(frame))
662 return willReceiveResourceResponseImpl(inspectorAgent, identifier, response);
702 if (InspectorAgent* inspectorAgent = inspectorAgentForFrame(frame))
703 didReceiveContentLengthImpl(inspectorAgent, identifier, dataLength, encodedDataLength);
710 if (InspectorAgent* inspectorAgent = inspectorAgentForFrame(frame))
711 didFinishLoadingImpl(inspectorAgent, identifier, finishTime);
718 if (InspectorAgent* inspectorAgent = inspectorAgentForFrame(frame))
719 didFailLoadingImpl(inspectorAgent, identifier, error);
726 if (InspectorAgent* inspectorAgent = inspectorAgentForContext(context))
727 resourceRetrievedByXMLHttpRequestImpl(inspectorAgent, identifier, sourceString, url, sendURL, sendLineNumber);
734 if (InspectorAgent* inspectorAgent = inspectorAgentForContext(context))
735 scriptImportedImpl(inspectorAgent, identifier, sourceString);
742 if (InspectorAgent* inspectorAgent = inspectorAgentForFrame(frame))
743 domContentLoadedEventFiredImpl(inspectorAgent, frame, url);
750 if (InspectorAgent* inspectorAgent = inspectorAgentForFrame(frame))
751 loadEventFiredImpl(inspectorAgent, frame, url);
758 if (InspectorAgent* inspectorAgent = inspectorAgentForFrame(frame))
759 frameDetachedFromParentImpl(inspectorAgent, frame);
771 if (InspectorAgent* inspectorAgent = inspectorAgentForPage(page))
772 didCommitLoadImpl(page, inspectorAgent, loader);
779 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForDocument(document))
780 return willWriteHTMLImpl(inspectorAgent, length, startLine);
797 if (InspectorAgent* inspectorAgent = inspectorAgentForPage(page))
798 didUseDOMStorageImpl(inspectorAgent, storageArea, isLocalStorage, frame);
807 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForContext(context))
808 didCreateWorkerImpl(inspectorAgent, id, url, isSharedWorker);
815 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForContext(context))
816 didDestroyWorkerImpl(inspectorAgent, id);
826 if (InspectorAgent* inspectorAgent = inspectorAgentForContext(context))
827 didCreateWebSocketImpl(inspectorAgent, identifier, requestURL, documentURL);
834 if (InspectorAgent* inspectorAgent = inspectorAgentForContext(context))
835 willSendWebSocketHandshakeRequestImpl(inspectorAgent, identifier, request);
842 if (InspectorAgent* inspectorAgent = inspectorAgentForContext(context))
843 didReceiveWebSocketHandshakeResponseImpl(inspectorAgent, identifier, response);
850 if (InspectorAgent* inspectorAgent = inspectorAgentForContext(context))
851 didCloseWebSocketImpl(inspectorAgent, identifier);
859 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForPage(page))
860 networkStateChangedImpl(inspectorAgent);
868 if (InspectorAgent* inspectorAgent = inspectorAgentWithFrontendForFrame(frame))
869 updateApplicationCacheStatusImpl(inspectorAgent, frame);
883 inline InspectorAgent* InspectorInstrumentation::inspectorAgentForContext(ScriptExecutionContext* context)
890 inline InspectorAgent* InspectorInstrumentation::inspectorAgentForFrame(Frame* frame)
897 inline InspectorAgent* InspectorInstrumentation::inspectorAgentForPage(Page* page)
904 inline InspectorAgent* InspectorInstrumentation::inspectorAgentWithFrontendForContext(ScriptExecutionContext* context)
911 inline InspectorAgent* InspectorInstrumentation::inspectorAgentWithFrontendForDocument(Document* document)
918 inline InspectorAgent* InspectorInstrumentation::inspectorAgentWithFrontendForFrame(Frame* frame)
925 inline InspectorAgent* InspectorInstrumentation::inspectorAgentWithFrontendForPage(Page* page)
928 if (InspectorAgent* inspectorAgent = inspectorAgentForPage(page)) {
929 if (hasFrontend(inspectorAgent))
930 return inspectorAgent;