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

Unified Diff: content/common/gpu/client/gpu_channel_host.cc

Issue 10662005: Use IPC::Sender and IPC::Listener in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
Index: content/common/gpu/client/gpu_channel_host.cc
diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc
index 1307c1757de03bc45b845694ca81f8699e0b23e3..cd5683f07893cb5630f3b4656b299c9e4f9b58eb 100644
--- a/content/common/gpu/client/gpu_channel_host.cc
+++ b/content/common/gpu/client/gpu_channel_host.cc
@@ -101,7 +101,7 @@ bool GpuChannelHost::Send(IPC::Message* message) {
}
// Callee takes ownership of message, regardless of whether Send is
- // successful. See IPC::Message::Sender.
+ // successful. See IPC::Sender.
delete message;
return false;
}
@@ -215,7 +215,7 @@ void GpuChannelHost::DestroyCommandBuffer(
}
void GpuChannelHost::AddRoute(
- int route_id, base::WeakPtr<IPC::Channel::Listener> listener) {
+ int route_id, base::WeakPtr<IPC::Listener> listener) {
DCHECK(MessageLoopProxy::current());
scoped_refptr<base::MessageLoopProxy> io_loop = factory_->GetIOLoopProxy();
@@ -243,7 +243,7 @@ GpuChannelHost::MessageFilter::~MessageFilter() {}
void GpuChannelHost::MessageFilter::AddRoute(
int route_id,
- base::WeakPtr<IPC::Channel::Listener> listener,
+ base::WeakPtr<IPC::Listener> listener,
scoped_refptr<MessageLoopProxy> loop) {
DCHECK(parent_->factory_->IsIOThread());
DCHECK(listeners_.find(route_id) == listeners_.end());
@@ -276,7 +276,7 @@ bool GpuChannelHost::MessageFilter::OnMessageReceived(
info.loop->PostTask(
FROM_HERE,
base::Bind(
- base::IgnoreResult(&IPC::Channel::Listener::OnMessageReceived),
+ base::IgnoreResult(&IPC::Listener::OnMessageReceived),
info.listener,
message));
}
@@ -294,7 +294,7 @@ void GpuChannelHost::MessageFilter::OnChannelError() {
const GpuListenerInfo& info = it->second;
info.loop->PostTask(
FROM_HERE,
- base::Bind(&IPC::Channel::Listener::OnChannelError, info.listener));
+ base::Bind(&IPC::Listener::OnChannelError, info.listener));
}
listeners_.clear();
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.h ('k') | content/common/gpu/client/gpu_video_decode_accelerator_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698