OLD | NEW |
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 static void resourceRetrievedByXMLHttpRequest(ScriptExecutionContext*, unsig
ned long identifier, const String& sourceString, const String& url, const String
& sendURL, unsigned sendLineNumber); | 135 static void resourceRetrievedByXMLHttpRequest(ScriptExecutionContext*, unsig
ned long identifier, const String& sourceString, const String& url, const String
& sendURL, unsigned sendLineNumber); |
136 static void didReceiveXHRResponse(ScriptExecutionContext*, unsigned long ide
ntifier); | 136 static void didReceiveXHRResponse(ScriptExecutionContext*, unsigned long ide
ntifier); |
137 static void willLoadXHRSynchronously(ScriptExecutionContext*); | 137 static void willLoadXHRSynchronously(ScriptExecutionContext*); |
138 static void didLoadXHRSynchronously(ScriptExecutionContext*); | 138 static void didLoadXHRSynchronously(ScriptExecutionContext*); |
139 static void scriptImported(ScriptExecutionContext*, unsigned long identifier
, const String& sourceString); | 139 static void scriptImported(ScriptExecutionContext*, unsigned long identifier
, const String& sourceString); |
140 static void didReceiveScriptResponse(ScriptExecutionContext*, unsigned long
identifier); | 140 static void didReceiveScriptResponse(ScriptExecutionContext*, unsigned long
identifier); |
141 static void domContentLoadedEventFired(Frame*, const KURL&); | 141 static void domContentLoadedEventFired(Frame*, const KURL&); |
142 static void loadEventFired(Frame*, const KURL&); | 142 static void loadEventFired(Frame*, const KURL&); |
143 static void frameDetachedFromParent(Frame*); | 143 static void frameDetachedFromParent(Frame*); |
144 static void didCommitLoad(Frame*, DocumentLoader*); | 144 static void didCommitLoad(Frame*, DocumentLoader*); |
145 static void frameDestroyed(Frame*); | |
146 static void loaderDetachedFromFrame(Frame*, DocumentLoader*); | 145 static void loaderDetachedFromFrame(Frame*, DocumentLoader*); |
147 | 146 |
148 static InspectorInstrumentationCookie willWriteHTML(Document*, unsigned int
length, unsigned int startLine); | 147 static InspectorInstrumentationCookie willWriteHTML(Document*, unsigned int
length, unsigned int startLine); |
149 static void didWriteHTML(const InspectorInstrumentationCookie&, unsigned int
endLine); | 148 static void didWriteHTML(const InspectorInstrumentationCookie&, unsigned int
endLine); |
150 | 149 |
151 static void addMessageToConsole(Page*, MessageSource, MessageType, MessageLe
vel, const String& message, PassRefPtr<ScriptArguments>, PassRefPtr<ScriptCallSt
ack>); | 150 static void addMessageToConsole(Page*, MessageSource, MessageType, MessageLe
vel, const String& message, PassRefPtr<ScriptArguments>, PassRefPtr<ScriptCallSt
ack>); |
152 static void addMessageToConsole(Page*, MessageSource, MessageType, MessageLe
vel, const String& message, unsigned lineNumber, const String&); | 151 static void addMessageToConsole(Page*, MessageSource, MessageType, MessageLe
vel, const String& message, unsigned lineNumber, const String&); |
153 static void consoleCount(Page*, PassRefPtr<ScriptArguments>, PassRefPtr<Scri
ptCallStack>); | 152 static void consoleCount(Page*, PassRefPtr<ScriptArguments>, PassRefPtr<Scri
ptCallStack>); |
154 static void startConsoleTiming(Page*, const String& title); | 153 static void startConsoleTiming(Page*, const String& title); |
155 static void stopConsoleTiming(Page*, const String& title, PassRefPtr<ScriptC
allStack>); | 154 static void stopConsoleTiming(Page*, const String& title, PassRefPtr<ScriptC
allStack>); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 static void resourceRetrievedByXMLHttpRequestImpl(InstrumentingAgents*, unsi
gned long identifier, const String& sourceString, const String& url, const Strin
g& sendURL, unsigned sendLineNumber); | 264 static void resourceRetrievedByXMLHttpRequestImpl(InstrumentingAgents*, unsi
gned long identifier, const String& sourceString, const String& url, const Strin
g& sendURL, unsigned sendLineNumber); |
266 static void didReceiveXHRResponseImpl(InstrumentingAgents*, unsigned long id
entifier); | 265 static void didReceiveXHRResponseImpl(InstrumentingAgents*, unsigned long id
entifier); |
267 static void willLoadXHRSynchronouslyImpl(InstrumentingAgents*); | 266 static void willLoadXHRSynchronouslyImpl(InstrumentingAgents*); |
268 static void didLoadXHRSynchronouslyImpl(InstrumentingAgents*); | 267 static void didLoadXHRSynchronouslyImpl(InstrumentingAgents*); |
269 static void scriptImportedImpl(InstrumentingAgents*, unsigned long identifie
r, const String& sourceString); | 268 static void scriptImportedImpl(InstrumentingAgents*, unsigned long identifie
r, const String& sourceString); |
270 static void didReceiveScriptResponseImpl(InstrumentingAgents*, unsigned long
identifier); | 269 static void didReceiveScriptResponseImpl(InstrumentingAgents*, unsigned long
identifier); |
271 static void domContentLoadedEventFiredImpl(InstrumentingAgents*, Frame*, con
st KURL&); | 270 static void domContentLoadedEventFiredImpl(InstrumentingAgents*, Frame*, con
st KURL&); |
272 static void loadEventFiredImpl(InstrumentingAgents*, Frame*, const KURL&); | 271 static void loadEventFiredImpl(InstrumentingAgents*, Frame*, const KURL&); |
273 static void frameDetachedFromParentImpl(InstrumentingAgents*, Frame*); | 272 static void frameDetachedFromParentImpl(InstrumentingAgents*, Frame*); |
274 static void didCommitLoadImpl(InstrumentingAgents*, Page*, DocumentLoader*); | 273 static void didCommitLoadImpl(InstrumentingAgents*, Page*, DocumentLoader*); |
275 static void frameDestroyedImpl(InstrumentingAgents*, Frame*); | |
276 static void loaderDetachedFromFrameImpl(InstrumentingAgents*, DocumentLoader
*); | 274 static void loaderDetachedFromFrameImpl(InstrumentingAgents*, DocumentLoader
*); |
277 | 275 |
278 static InspectorInstrumentationCookie willWriteHTMLImpl(InstrumentingAgents*
, unsigned int length, unsigned int startLine); | 276 static InspectorInstrumentationCookie willWriteHTMLImpl(InstrumentingAgents*
, unsigned int length, unsigned int startLine); |
279 static void didWriteHTMLImpl(const InspectorInstrumentationCookie&, unsigned
int endLine); | 277 static void didWriteHTMLImpl(const InspectorInstrumentationCookie&, unsigned
int endLine); |
280 | 278 |
281 static void addMessageToConsoleImpl(InstrumentingAgents*, MessageSource, Mes
sageType, MessageLevel, const String& message, PassRefPtr<ScriptArguments>, Pass
RefPtr<ScriptCallStack>); | 279 static void addMessageToConsoleImpl(InstrumentingAgents*, MessageSource, Mes
sageType, MessageLevel, const String& message, PassRefPtr<ScriptArguments>, Pass
RefPtr<ScriptCallStack>); |
282 static void addMessageToConsoleImpl(InstrumentingAgents*, MessageSource, Mes
sageType, MessageLevel, const String& message, unsigned lineNumber, const String
& scriptId); | 280 static void addMessageToConsoleImpl(InstrumentingAgents*, MessageSource, Mes
sageType, MessageLevel, const String& message, unsigned lineNumber, const String
& scriptId); |
283 static void consoleCountImpl(InstrumentingAgents*, PassRefPtr<ScriptArgument
s>, PassRefPtr<ScriptCallStack>); | 281 static void consoleCountImpl(InstrumentingAgents*, PassRefPtr<ScriptArgument
s>, PassRefPtr<ScriptCallStack>); |
284 static void startConsoleTimingImpl(InstrumentingAgents*, const String& title
); | 282 static void startConsoleTimingImpl(InstrumentingAgents*, const String& title
); |
285 static void stopConsoleTimingImpl(InstrumentingAgents*, const String& title,
PassRefPtr<ScriptCallStack>); | 283 static void stopConsoleTimingImpl(InstrumentingAgents*, const String& title,
PassRefPtr<ScriptCallStack>); |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 if (!frame) | 888 if (!frame) |
891 return; | 889 return; |
892 Page* page = frame->page(); | 890 Page* page = frame->page(); |
893 if (!page) | 891 if (!page) |
894 return; | 892 return; |
895 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa
ge)) | 893 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(pa
ge)) |
896 didCommitLoadImpl(instrumentingAgents, page, loader); | 894 didCommitLoadImpl(instrumentingAgents, page, loader); |
897 #endif | 895 #endif |
898 } | 896 } |
899 | 897 |
900 inline void InspectorInstrumentation::frameDestroyed(Frame* frame) | |
901 { | |
902 #if ENABLE(INSPECTOR) | |
903 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f
rame)) | |
904 frameDestroyedImpl(instrumentingAgents, frame); | |
905 #endif | |
906 } | |
907 | |
908 inline void InspectorInstrumentation::loaderDetachedFromFrame(Frame* frame, Docu
mentLoader* loader) | 898 inline void InspectorInstrumentation::loaderDetachedFromFrame(Frame* frame, Docu
mentLoader* loader) |
909 { | 899 { |
910 #if ENABLE(INSPECTOR) | 900 #if ENABLE(INSPECTOR) |
911 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f
rame)) | 901 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(f
rame)) |
912 loaderDetachedFromFrameImpl(instrumentingAgents, loader); | 902 loaderDetachedFromFrameImpl(instrumentingAgents, loader); |
913 #endif | 903 #endif |
914 } | 904 } |
915 | 905 |
916 inline InspectorInstrumentationCookie InspectorInstrumentation::willWriteHTML(Do
cument* document, unsigned int length, unsigned int startLine) | 906 inline InspectorInstrumentationCookie InspectorInstrumentation::willWriteHTML(Do
cument* document, unsigned int length, unsigned int startLine) |
917 { | 907 { |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 { | 1052 { |
1063 if (document) | 1053 if (document) |
1064 return instrumentingAgentsForPage(document->page()); | 1054 return instrumentingAgentsForPage(document->page()); |
1065 return 0; | 1055 return 0; |
1066 } | 1056 } |
1067 #endif | 1057 #endif |
1068 | 1058 |
1069 } // namespace WebCore | 1059 } // namespace WebCore |
1070 | 1060 |
1071 #endif // !defined(InspectorInstrumentation_h) | 1061 #endif // !defined(InspectorInstrumentation_h) |
OLD | NEW |