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

Side by Side Diff: content/renderer/devtools/devtools_agent.cc

Issue 345113004: DevTools: complete 2-sided migration to attach w/ id (content) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « content/renderer/devtools/devtools_agent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/devtools/devtools_agent.h" 5 #include "content/renderer/devtools/devtools_agent.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 return handled; 115 return handled;
116 } 116 }
117 117
118 void DevToolsAgent::sendMessageToInspectorFrontend( 118 void DevToolsAgent::sendMessageToInspectorFrontend(
119 const blink::WebString& message) { 119 const blink::WebString& message) {
120 Send(new DevToolsClientMsg_DispatchOnInspectorFrontend(routing_id(), 120 Send(new DevToolsClientMsg_DispatchOnInspectorFrontend(routing_id(),
121 message.utf8())); 121 message.utf8()));
122 } 122 }
123 123
124 int DevToolsAgent::hostIdentifier() {
125 return routing_id();
126 }
127
128 int DevToolsAgent::debuggerId() { 124 int DevToolsAgent::debuggerId() {
129 return routing_id(); 125 return routing_id();
130 } 126 }
131 127
132 void DevToolsAgent::saveAgentRuntimeState( 128 void DevToolsAgent::saveAgentRuntimeState(
133 const blink::WebString& state) { 129 const blink::WebString& state) {
134 Send(new DevToolsHostMsg_SaveAgentRuntimeState(routing_id(), state.utf8())); 130 Send(new DevToolsHostMsg_SaveAgentRuntimeState(routing_id(), state.utf8()));
135 } 131 }
136 132
137 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* 133 blink::WebDevToolsAgentClient::WebKitClientMessageLoop*
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 if (!web_view) 374 if (!web_view)
379 return NULL; 375 return NULL;
380 return web_view->devToolsAgent(); 376 return web_view->devToolsAgent();
381 } 377 }
382 378
383 bool DevToolsAgent::IsAttached() { 379 bool DevToolsAgent::IsAttached() {
384 return is_attached_; 380 return is_attached_;
385 } 381 }
386 382
387 } // namespace content 383 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/devtools/devtools_agent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698