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

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

Issue 1128273005: Devtools: Move runMessageLoopOnPause and other methods on ScriptDebugServer::Client (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix ownptrs Created 5 years, 7 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 | Annotate | Revision Log
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 using blink::TypeBuilder::Runtime::RemoteObject; 51 using blink::TypeBuilder::Runtime::RemoteObject;
52 52
53 namespace blink { 53 namespace blink {
54 54
55 PassOwnPtrWillBeRawPtr<PageDebuggerAgent> PageDebuggerAgent::create(PageScriptDe bugServer* pageScriptDebugServer, InspectorPageAgent* pageAgent, InjectedScriptM anager* injectedScriptManager, InspectorOverlay* overlay, int debuggerId) 55 PassOwnPtrWillBeRawPtr<PageDebuggerAgent> PageDebuggerAgent::create(PageScriptDe bugServer* pageScriptDebugServer, InspectorPageAgent* pageAgent, InjectedScriptM anager* injectedScriptManager, InspectorOverlay* overlay, int debuggerId)
56 { 56 {
57 return adoptPtrWillBeNoop(new PageDebuggerAgent(pageScriptDebugServer, pageA gent, injectedScriptManager, overlay, debuggerId)); 57 return adoptPtrWillBeNoop(new PageDebuggerAgent(pageScriptDebugServer, pageA gent, injectedScriptManager, overlay, debuggerId));
58 } 58 }
59 59
60 PageDebuggerAgent::PageDebuggerAgent(PageScriptDebugServer* pageScriptDebugServe r, InspectorPageAgent* pageAgent, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay, int debuggerId) 60 PageDebuggerAgent::PageDebuggerAgent(PageScriptDebugServer* pageScriptDebugServe r, InspectorPageAgent* pageAgent, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay, int debuggerId)
61 : InspectorDebuggerAgent(injectedScriptManager, pageScriptDebugServer->isola te()) 61 : InspectorDebuggerAgent(injectedScriptManager, pageScriptDebugServer->scrip tDebugServer()->isolate())
62 , m_pageScriptDebugServer(pageScriptDebugServer) 62 , m_pageScriptDebugServer(pageScriptDebugServer)
63 , m_pageAgent(pageAgent) 63 , m_pageAgent(pageAgent)
64 , m_overlay(overlay) 64 , m_overlay(overlay)
65 , m_debuggerId(debuggerId) 65 , m_debuggerId(debuggerId)
66 { 66 {
67 m_overlay->setListener(this); 67 m_overlay->setListener(this);
68 } 68 }
69 69
70 PageDebuggerAgent::~PageDebuggerAgent() 70 PageDebuggerAgent::~PageDebuggerAgent()
71 { 71 {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 void PageDebuggerAgent::disable() 104 void PageDebuggerAgent::disable()
105 { 105 {
106 InspectorDebuggerAgent::disable(); 106 InspectorDebuggerAgent::disable();
107 m_instrumentingAgents->setPageDebuggerAgent(0); 107 m_instrumentingAgents->setPageDebuggerAgent(0);
108 m_compiledScriptURLs.clear(); 108 m_compiledScriptURLs.clear();
109 } 109 }
110 110
111 void PageDebuggerAgent::startListeningScriptDebugServer() 111 void PageDebuggerAgent::startListeningScriptDebugServer()
112 { 112 {
113 scriptDebugServer().addListener(this, m_pageAgent->inspectedFrame(), m_debug gerId); 113 m_pageScriptDebugServer->addListener(this, m_pageAgent->inspectedFrame(), m_ debuggerId);
114 } 114 }
115 115
116 void PageDebuggerAgent::stopListeningScriptDebugServer() 116 void PageDebuggerAgent::stopListeningScriptDebugServer()
117 { 117 {
118 scriptDebugServer().removeListener(this, m_pageAgent->inspectedFrame()); 118 m_pageScriptDebugServer->removeListener(this, m_pageAgent->inspectedFrame()) ;
119 } 119 }
120 120
121 PageScriptDebugServer& PageDebuggerAgent::scriptDebugServer() 121 ScriptDebugServer& PageDebuggerAgent::scriptDebugServer()
122 { 122 {
123 return *m_pageScriptDebugServer; 123 return *(m_pageScriptDebugServer->scriptDebugServer());
124 } 124 }
125 125
126 void PageDebuggerAgent::muteConsole() 126 void PageDebuggerAgent::muteConsole()
127 { 127 {
128 FrameConsole::mute(); 128 FrameConsole::mute();
129 } 129 }
130 130
131 void PageDebuggerAgent::unmuteConsole() 131 void PageDebuggerAgent::unmuteConsole()
132 { 132 {
133 FrameConsole::unmute(); 133 FrameConsole::unmute();
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 RefPtrWillBeRawPtr<LocalFrame> protect(frame); 218 RefPtrWillBeRawPtr<LocalFrame> protect(frame);
219 InspectorDebuggerAgent::runScript(errorString, scriptId, executionContextId, objectGroup, doNotPauseOnExceptionsAndMuteConsole, result, exceptionDetails); 219 InspectorDebuggerAgent::runScript(errorString, scriptId, executionContextId, objectGroup, doNotPauseOnExceptionsAndMuteConsole, result, exceptionDetails);
220 220
221 if (frame) 221 if (frame)
222 InspectorInstrumentation::didEvaluateScript(cookie); 222 InspectorInstrumentation::didEvaluateScript(cookie);
223 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Update Counters", TRACE_EVENT_SCOPE_THREAD, "data", InspectorUpdateCountersEvent::data( )); 223 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Update Counters", TRACE_EVENT_SCOPE_THREAD, "data", InspectorUpdateCountersEvent::data( ));
224 224
225 } 225 }
226 226
227 } // namespace blink 227 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698