OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |