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

Side by Side Diff: third_party/WebKit/Source/core/inspector/PageDebuggerAgent.cpp

Issue 1857713004: DevTools: simplify the async instrumentation harness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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
OLDNEW
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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 98
100 99
101 void PageDebuggerAgent::didStartProvisionalLoad(LocalFrame* frame) 100 void PageDebuggerAgent::didStartProvisionalLoad(LocalFrame* frame)
102 { 101 {
103 if (frame == m_inspectedFrames->root()) { 102 if (frame == m_inspectedFrames->root()) {
104 ErrorString error; 103 ErrorString error;
105 resume(&error); 104 resume(&error);
106 } 105 }
107 } 106 }
108 107
109 void PageDebuggerAgent::didClearDocumentOfWindowObject(LocalFrame* frame)
110 {
111 // FIXME: what about nested objects?
112 if (frame != m_inspectedFrames->root())
113 return;
114 m_asyncCallTracker->resetAsyncOperations();
115 }
116
117 } // namespace blink 108 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698