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

Unified Diff: content/common/webmessageportchannel_impl.cc

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/resource_dispatcher_unittest.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/webmessageportchannel_impl.cc
diff --git a/content/common/webmessageportchannel_impl.cc b/content/common/webmessageportchannel_impl.cc
index 1833ec1a9c5e8d08a3cb211408abda8cf0722eb3..93e02329bb190446469902507b7b854d81343708 100644
--- a/content/common/webmessageportchannel_impl.cc
+++ b/content/common/webmessageportchannel_impl.cc
@@ -80,11 +80,11 @@ void WebMessagePortChannelImpl::entangle(WebMessagePortChannel* channel) {
void WebMessagePortChannelImpl::postMessage(
const WebString& message,
WebMessagePortChannelArray* channels) {
- if (MessageLoop::current() != ChildThread::current()->message_loop()) {
+ if (base::MessageLoop::current() != ChildThread::current()->message_loop()) {
ChildThread::current()->message_loop()->PostTask(
FROM_HERE,
- base::Bind(&WebMessagePortChannelImpl::postMessage, this,
- message, channels));
+ base::Bind(
+ &WebMessagePortChannelImpl::postMessage, this, message, channels));
return;
}
@@ -127,10 +127,9 @@ bool WebMessagePortChannelImpl::tryGetMessage(
}
void WebMessagePortChannelImpl::Init() {
- if (MessageLoop::current() != ChildThread::current()->message_loop()) {
+ if (base::MessageLoop::current() != ChildThread::current()->message_loop()) {
ChildThread::current()->message_loop()->PostTask(
- FROM_HERE,
- base::Bind(&WebMessagePortChannelImpl::Init, this));
+ FROM_HERE, base::Bind(&WebMessagePortChannelImpl::Init, this));
return;
}
@@ -145,7 +144,7 @@ void WebMessagePortChannelImpl::Init() {
void WebMessagePortChannelImpl::Entangle(
scoped_refptr<WebMessagePortChannelImpl> channel) {
- if (MessageLoop::current() != ChildThread::current()->message_loop()) {
+ if (base::MessageLoop::current() != ChildThread::current()->message_loop()) {
ChildThread::current()->message_loop()->PostTask(
FROM_HERE,
base::Bind(&WebMessagePortChannelImpl::Entangle, this, channel));
@@ -157,10 +156,9 @@ void WebMessagePortChannelImpl::Entangle(
}
void WebMessagePortChannelImpl::QueueMessages() {
- if (MessageLoop::current() != ChildThread::current()->message_loop()) {
+ if (base::MessageLoop::current() != ChildThread::current()->message_loop()) {
ChildThread::current()->message_loop()->PostTask(
- FROM_HERE,
- base::Bind(&WebMessagePortChannelImpl::QueueMessages, this));
+ FROM_HERE, base::Bind(&WebMessagePortChannelImpl::QueueMessages, this));
return;
}
// This message port is being sent elsewhere (perhaps to another process).
@@ -177,7 +175,7 @@ void WebMessagePortChannelImpl::QueueMessages() {
}
void WebMessagePortChannelImpl::Send(IPC::Message* message) {
- if (MessageLoop::current() != ChildThread::current()->message_loop()) {
+ if (base::MessageLoop::current() != ChildThread::current()->message_loop()) {
DCHECK(!message->is_sync());
ChildThread::current()->message_loop()->PostTask(
FROM_HERE,
« no previous file with comments | « content/common/resource_dispatcher_unittest.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698