| 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 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 17 matching lines...) Expand all Loading... |
| 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 #include "core/inspector/PageDebuggerAgent.h" | 31 #include "core/inspector/PageDebuggerAgent.h" |
| 32 | 32 |
| 33 #include "bindings/core/v8/DOMWrapperWorld.h" | 33 #include "bindings/core/v8/DOMWrapperWorld.h" |
| 34 #include "bindings/core/v8/ScriptController.h" | 34 #include "bindings/core/v8/ScriptController.h" |
| 35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
| 36 #include "core/frame/FrameConsole.h" | 36 #include "core/frame/FrameConsole.h" |
| 37 #include "core/frame/LocalFrame.h" | 37 #include "core/frame/LocalFrame.h" |
| 38 #include "core/inspector/AsyncCallTracker.h" | |
| 39 #include "core/inspector/InspectedFrames.h" | 38 #include "core/inspector/InspectedFrames.h" |
| 40 #include "core/inspector/InspectorInstrumentation.h" | 39 #include "core/inspector/InspectorInstrumentation.h" |
| 41 #include "core/inspector/InspectorTraceEvents.h" | 40 #include "core/inspector/InspectorTraceEvents.h" |
| 42 #include "core/inspector/InstrumentingAgents.h" | 41 #include "core/inspector/InstrumentingAgents.h" |
| 43 #include "core/loader/DocumentLoader.h" | 42 #include "core/loader/DocumentLoader.h" |
| 44 #include "core/page/Page.h" | 43 #include "core/page/Page.h" |
| 45 | 44 |
| 46 using blink::protocol::Runtime::RemoteObject; | 45 using blink::protocol::Runtime::RemoteObject; |
| 47 | 46 |
| 48 namespace blink { | 47 namespace blink { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 108 } |
| 110 | 109 |
| 111 void PageDebuggerAgent::didStartProvisionalLoad(LocalFrame* frame) | 110 void PageDebuggerAgent::didStartProvisionalLoad(LocalFrame* frame) |
| 112 { | 111 { |
| 113 if (frame == m_inspectedFrames->root()) { | 112 if (frame == m_inspectedFrames->root()) { |
| 114 ErrorString error; | 113 ErrorString error; |
| 115 resume(&error); | 114 resume(&error); |
| 116 } | 115 } |
| 117 } | 116 } |
| 118 | 117 |
| 119 void PageDebuggerAgent::didClearDocumentOfWindowObject(LocalFrame* frame) | |
| 120 { | |
| 121 // FIXME: what about nested objects? | |
| 122 if (frame != m_inspectedFrames->root()) | |
| 123 return; | |
| 124 m_asyncCallTracker->resetAsyncOperations(); | |
| 125 } | |
| 126 | |
| 127 } // namespace blink | 118 } // namespace blink |
| OLD | NEW |