| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 | 101 |
| 102 void DevToolsAgent::WidgetWillClose() { | 102 void DevToolsAgent::WidgetWillClose() { |
| 103 ContinueProgram(); | 103 ContinueProgram(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 void DevToolsAgent::sendProtocolMessage(int session_id, | 106 void DevToolsAgent::sendProtocolMessage(int session_id, |
| 107 int call_id, | 107 int call_id, |
| 108 const blink::WebString& message, | 108 const blink::WebString& message, |
| 109 const blink::WebString& state_cookie) { | 109 const blink::WebString& state_cookie) { |
| 110 if (!send_protocol_message_callback_for_test_.is_null()) { |
| 111 send_protocol_message_callback_for_test_.Run( |
| 112 session_id, call_id, message.utf8(), state_cookie.utf8()); |
| 113 return; |
| 114 } |
| 110 SendChunkedProtocolMessage(this, routing_id(), session_id, call_id, | 115 SendChunkedProtocolMessage(this, routing_id(), session_id, call_id, |
| 111 message.utf8(), state_cookie.utf8()); | 116 message.utf8(), state_cookie.utf8()); |
| 112 } | 117 } |
| 113 | 118 |
| 114 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* | 119 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* |
| 115 DevToolsAgent::createClientMessageLoop() { | 120 DevToolsAgent::createClientMessageLoop() { |
| 116 return new WebKitClientMessageLoopImpl(); | 121 return new WebKitClientMessageLoopImpl(); |
| 117 } | 122 } |
| 118 | 123 |
| 119 void DevToolsAgent::willEnterDebugLoop() { | 124 void DevToolsAgent::willEnterDebugLoop() { |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 284 |
| 280 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { | 285 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { |
| 281 return frame_->GetWebFrame()->devToolsAgent(); | 286 return frame_->GetWebFrame()->devToolsAgent(); |
| 282 } | 287 } |
| 283 | 288 |
| 284 bool DevToolsAgent::IsAttached() { | 289 bool DevToolsAgent::IsAttached() { |
| 285 return is_attached_; | 290 return is_attached_; |
| 286 } | 291 } |
| 287 | 292 |
| 288 } // namespace content | 293 } // namespace content |
| OLD | NEW |