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

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

Issue 8536037: base::Bind: Low-hanging fruit conversions of NewRunnableFunction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix 4. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/shell/shell_browser_main.cc » ('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 "content/renderer/devtools_agent_filter.h" 5 #include "content/renderer/devtools_agent_filter.h"
6 6
7 #include "base/bind.h"
7 #include "base/message_loop.h" 8 #include "base/message_loop.h"
8 #include "content/common/devtools_messages.h" 9 #include "content/common/devtools_messages.h"
9 #include "content/renderer/devtools_agent.h" 10 #include "content/renderer/devtools_agent.h"
10 #include "content/renderer/plugin_channel_host.h" 11 #include "content/renderer/plugin_channel_host.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
13 14
14 using WebKit::WebDevToolsAgent; 15 using WebKit::WebDevToolsAgent;
15 using WebKit::WebString; 16 using WebKit::WebString;
16 17
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const std::string& message) { 87 const std::string& message) {
87 if (!WebDevToolsAgent::shouldInterruptForMessage( 88 if (!WebDevToolsAgent::shouldInterruptForMessage(
88 WebString::fromUTF8(message))) { 89 WebString::fromUTF8(message))) {
89 message_handled_ = false; 90 message_handled_ = false;
90 return; 91 return;
91 } 92 }
92 WebDevToolsAgent::interruptAndDispatch( 93 WebDevToolsAgent::interruptAndDispatch(
93 new MessageImpl(message, current_routing_id_)); 94 new MessageImpl(message, current_routing_id_));
94 95
95 render_thread_loop_->PostTask( 96 render_thread_loop_->PostTask(
96 FROM_HERE, 97 FROM_HERE, base::Bind(&WebDevToolsAgent::processPendingMessages));
97 NewRunnableFunction(&WebDevToolsAgent::processPendingMessages));
98 } 98 }
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/shell/shell_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698