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

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: Remove empty line 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 15 matching lines...) Expand all
87 87
88 void PageDebuggerAgent::disable() 88 void PageDebuggerAgent::disable()
89 { 89 {
90 InspectorDebuggerAgent::disable(); 90 InspectorDebuggerAgent::disable();
91 m_instrumentingAgents->setPageDebuggerAgent(0); 91 m_instrumentingAgents->setPageDebuggerAgent(0);
92 m_compiledScriptURLs.clear(); 92 m_compiledScriptURLs.clear();
93 } 93 }
94 94
95 void PageDebuggerAgent::startListeningScriptDebugServer() 95 void PageDebuggerAgent::startListeningScriptDebugServer()
96 { 96 {
97 scriptDebugServer().addListener(this, m_pageAgent->inspectedFrame(), m_debug gerId); 97 m_pageScriptDebugServer->addListener(this, m_pageAgent->inspectedFrame(), m_ debuggerId);
98 } 98 }
99 99
100 void PageDebuggerAgent::stopListeningScriptDebugServer() 100 void PageDebuggerAgent::stopListeningScriptDebugServer()
101 { 101 {
102 scriptDebugServer().removeListener(this, m_pageAgent->inspectedFrame()); 102 m_pageScriptDebugServer->removeListener(this, m_pageAgent->inspectedFrame()) ;
103 } 103 }
104 104
105 PageScriptDebugServer& PageDebuggerAgent::scriptDebugServer() 105 ScriptDebugServer& PageDebuggerAgent::scriptDebugServer()
106 { 106 {
107 return *m_pageScriptDebugServer; 107 return *(m_pageScriptDebugServer->scriptDebugServer());
108 } 108 }
109 109
110 void PageDebuggerAgent::muteConsole() 110 void PageDebuggerAgent::muteConsole()
111 { 111 {
112 FrameConsole::mute(); 112 FrameConsole::mute();
113 } 113 }
114 114
115 void PageDebuggerAgent::unmuteConsole() 115 void PageDebuggerAgent::unmuteConsole()
116 { 116 {
117 FrameConsole::unmute(); 117 FrameConsole::unmute();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 RefPtrWillBeRawPtr<LocalFrame> protect(frame); 199 RefPtrWillBeRawPtr<LocalFrame> protect(frame);
200 InspectorDebuggerAgent::runScript(errorString, scriptId, executionContextId, objectGroup, doNotPauseOnExceptionsAndMuteConsole, result, exceptionDetails); 200 InspectorDebuggerAgent::runScript(errorString, scriptId, executionContextId, objectGroup, doNotPauseOnExceptionsAndMuteConsole, result, exceptionDetails);
201 201
202 if (frame) 202 if (frame)
203 InspectorInstrumentation::didEvaluateScript(cookie); 203 InspectorInstrumentation::didEvaluateScript(cookie);
204 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Update Counters", TRACE_EVENT_SCOPE_THREAD, "data", InspectorUpdateCountersEvent::data( )); 204 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Update Counters", TRACE_EVENT_SCOPE_THREAD, "data", InspectorUpdateCountersEvent::data( ));
205 205
206 } 206 }
207 207
208 } // namespace blink 208 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698