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