OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/renderer/devtools_agent_filter.h" | 5 #include "chrome/renderer/devtools_agent_filter.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/common/devtools_messages.h" | 8 #include "chrome/common/devtools_messages.h" |
9 #include "chrome/renderer/devtools_agent.h" | 9 #include "chrome/renderer/devtools_agent.h" |
10 #include "chrome/renderer/plugin_channel_host.h" | 10 #include "chrome/renderer/plugin_channel_host.h" |
11 #include "chrome/renderer/render_view.h" | 11 #include "chrome/renderer/render_view.h" |
12 #include "webkit/api/public/WebDevToolsAgent.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h" |
13 #include "webkit/api/public/WebString.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
14 | 14 |
15 using WebKit::WebDevToolsAgent; | 15 using WebKit::WebDevToolsAgent; |
16 using WebKit::WebString; | 16 using WebKit::WebString; |
17 | 17 |
18 // static | 18 // static |
19 void DevToolsAgentFilter::DispatchMessageLoop() { | 19 void DevToolsAgentFilter::DispatchMessageLoop() { |
20 MessageLoop* current = MessageLoop::current(); | 20 MessageLoop* current = MessageLoop::current(); |
21 bool old_state = current->NestableTasksAllowed(); | 21 bool old_state = current->NestableTasksAllowed(); |
22 current->SetNestableTasksAllowed(true); | 22 current->SetNestableTasksAllowed(true); |
23 current->RunAllPending(); | 23 current->RunAllPending(); |
(...skipping 21 matching lines...) Expand all Loading... |
45 return handled; | 45 return handled; |
46 } else { | 46 } else { |
47 return false; | 47 return false; |
48 } | 48 } |
49 } | 49 } |
50 | 50 |
51 void DevToolsAgentFilter::OnDebuggerCommand(const std::string& command) { | 51 void DevToolsAgentFilter::OnDebuggerCommand(const std::string& command) { |
52 WebDevToolsAgent::executeDebuggerCommand( | 52 WebDevToolsAgent::executeDebuggerCommand( |
53 WebString::fromUTF8(command), current_routing_id_); | 53 WebString::fromUTF8(command), current_routing_id_); |
54 } | 54 } |
OLD | NEW |