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

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

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 26 matching lines...) Expand all
37 #include "core/frame/LocalFrame.h" 37 #include "core/frame/LocalFrame.h"
38 #include "core/inspector/AsyncCallTracker.h" 38 #include "core/inspector/AsyncCallTracker.h"
39 #include "core/inspector/InspectedFrames.h" 39 #include "core/inspector/InspectedFrames.h"
40 #include "core/inspector/InspectorInstrumentation.h" 40 #include "core/inspector/InspectorInstrumentation.h"
41 #include "core/inspector/InspectorTraceEvents.h" 41 #include "core/inspector/InspectorTraceEvents.h"
42 #include "core/inspector/InstrumentingAgents.h" 42 #include "core/inspector/InstrumentingAgents.h"
43 #include "core/inspector/MainThreadDebugger.h" 43 #include "core/inspector/MainThreadDebugger.h"
44 #include "core/loader/DocumentLoader.h" 44 #include "core/loader/DocumentLoader.h"
45 #include "core/page/Page.h" 45 #include "core/page/Page.h"
46 46
47 using blink::protocol::TypeBuilder::Runtime::RemoteObject; 47 using blink::protocol::Runtime::RemoteObject;
48 48
49 namespace blink { 49 namespace blink {
50 50
51 PassOwnPtrWillBeRawPtr<PageDebuggerAgent> PageDebuggerAgent::create(MainThreadDe bugger* mainThreadDebugger, InspectedFrames* inspectedFrames, V8RuntimeAgent* ru ntimeAgent) 51 PassOwnPtrWillBeRawPtr<PageDebuggerAgent> PageDebuggerAgent::create(MainThreadDe bugger* mainThreadDebugger, InspectedFrames* inspectedFrames, V8RuntimeAgent* ru ntimeAgent)
52 { 52 {
53 return adoptPtrWillBeNoop(new PageDebuggerAgent(mainThreadDebugger, inspecte dFrames, runtimeAgent)); 53 return adoptPtrWillBeNoop(new PageDebuggerAgent(mainThreadDebugger, inspecte dFrames, runtimeAgent));
54 } 54 }
55 55
56 PageDebuggerAgent::PageDebuggerAgent(MainThreadDebugger* mainThreadDebugger, Ins pectedFrames* inspectedFrames, V8RuntimeAgent* runtimeAgent) 56 PageDebuggerAgent::PageDebuggerAgent(MainThreadDebugger* mainThreadDebugger, Ins pectedFrames* inspectedFrames, V8RuntimeAgent* runtimeAgent)
57 : InspectorDebuggerAgent(runtimeAgent, mainThreadDebugger->debugger(), mainT hreadDebugger->contextGroupId(inspectedFrames->root())) 57 : InspectorDebuggerAgent(runtimeAgent, mainThreadDebugger->debugger(), mainT hreadDebugger->contextGroupId(inspectedFrames->root()))
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void PageDebuggerAgent::didClearDocumentOfWindowObject(LocalFrame* frame) 120 void PageDebuggerAgent::didClearDocumentOfWindowObject(LocalFrame* frame)
121 { 121 {
122 // FIXME: what about nested objects? 122 // FIXME: what about nested objects?
123 if (frame != m_inspectedFrames->root()) 123 if (frame != m_inspectedFrames->root())
124 return; 124 return;
125 m_asyncCallTracker->resetAsyncOperations(); 125 m_asyncCallTracker->resetAsyncOperations();
126 m_v8DebuggerAgent->reset(); 126 m_v8DebuggerAgent->reset();
127 } 127 }
128 128
129 } // namespace blink 129 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698