OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 m_injectedScriptManager->discardInjectedScriptsFor(window); | 257 m_injectedScriptManager->discardInjectedScriptsFor(window); |
258 } | 258 } |
259 | 259 |
260 void InspectorConsoleAgent::didCommitLoad(Frame* frame, DocumentLoader* loader) | 260 void InspectorConsoleAgent::didCommitLoad(Frame* frame, DocumentLoader* loader) |
261 { | 261 { |
262 if (loader->frame() != frame->page()->mainFrame()) | 262 if (loader->frame() != frame->page()->mainFrame()) |
263 return; | 263 return; |
264 reset(); | 264 reset(); |
265 } | 265 } |
266 | 266 |
267 void InspectorConsoleAgent::didFinishXHRLoading(ThreadableLoaderClient*, unsigne
d long requestIdentifier, const String&, const String& url, const String& sendUR
L, unsigned sendLineNumber) | 267 void InspectorConsoleAgent::didFinishXHRLoading(ThreadableLoaderClient*, unsigne
d long requestIdentifier, ScriptString, const String& url, const String& sendURL
, unsigned sendLineNumber) |
268 { | 268 { |
269 if (m_frontend && m_state->getBoolean(ConsoleAgentState::monitoringXHR)) { | 269 if (m_frontend && m_state->getBoolean(ConsoleAgentState::monitoringXHR)) { |
270 String message = "XHR finished loading: \"" + url + "\"."; | 270 String message = "XHR finished loading: \"" + url + "\"."; |
271 addMessageToConsole(NetworkMessageSource, LogMessageType, DebugMessageLe
vel, message, sendURL, sendLineNumber, 0, requestIdentifier); | 271 addMessageToConsole(NetworkMessageSource, LogMessageType, DebugMessageLe
vel, message, sendURL, sendLineNumber, 0, requestIdentifier); |
272 } | 272 } |
273 } | 273 } |
274 | 274 |
275 void InspectorConsoleAgent::didReceiveResourceResponse(unsigned long requestIden
tifier, DocumentLoader* loader, const ResourceResponse& response, ResourceLoader
*) | 275 void InspectorConsoleAgent::didReceiveResourceResponse(unsigned long requestIden
tifier, DocumentLoader* loader, const ResourceResponse& response, ResourceLoader
*) |
276 { | 276 { |
277 if (!loader) | 277 if (!loader) |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 int m_heapObjectId; | 339 int m_heapObjectId; |
340 }; | 340 }; |
341 | 341 |
342 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe
apObjectId) | 342 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe
apObjectId) |
343 { | 343 { |
344 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n
ew InspectableHeapObject(inspectedHeapObjectId))); | 344 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n
ew InspectableHeapObject(inspectedHeapObjectId))); |
345 } | 345 } |
346 | 346 |
347 } // namespace WebCore | 347 } // namespace WebCore |
348 | 348 |
OLD | NEW |