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

Side by Side Diff: chrome/renderer/devtools_agent_filter.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « chrome/renderer/devtools_agent.cc ('k') | chrome/renderer/devtools_client.h » ('j') | 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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/devtools_agent.cc ('k') | chrome/renderer/devtools_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698