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

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

Issue 387853002: DevTools: Add processId getter implementation on DevToolsAgent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 long DevToolsAgent::processId() {
125 return base::Process::Current().pid();
126 }
127
124 int DevToolsAgent::debuggerId() { 128 int DevToolsAgent::debuggerId() {
125 return routing_id(); 129 return routing_id();
126 } 130 }
127 131
128 void DevToolsAgent::saveAgentRuntimeState( 132 void DevToolsAgent::saveAgentRuntimeState(
129 const blink::WebString& state) { 133 const blink::WebString& state) {
130 Send(new DevToolsHostMsg_SaveAgentRuntimeState(routing_id(), state.utf8())); 134 Send(new DevToolsHostMsg_SaveAgentRuntimeState(routing_id(), state.utf8()));
131 } 135 }
132 136
133 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* 137 blink::WebDevToolsAgentClient::WebKitClientMessageLoop*
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 if (!web_view) 376 if (!web_view)
373 return NULL; 377 return NULL;
374 return web_view->devToolsAgent(); 378 return web_view->devToolsAgent();
375 } 379 }
376 380
377 bool DevToolsAgent::IsAttached() { 381 bool DevToolsAgent::IsAttached() {
378 return is_attached_; 382 return is_attached_;
379 } 383 }
380 384
381 } // namespace content 385 } // 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