diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-25 17:03:10 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-25 17:03:10 +0000 |
commit | d84effeba573f3362b2cd297e86e90ec55f99cfc (patch) | |
tree | 57ad855f15ab544aa6bb4b829a13afb825eb951c /content/common/gpu/gpu_channel_manager.h | |
parent | 980ad60a008062fa7c9880ad5cdc8790be959afa (diff) | |
download | chromium_src-d84effeba573f3362b2cd297e86e90ec55f99cfc.zip chromium_src-d84effeba573f3362b2cd297e86e90ec55f99cfc.tar.gz chromium_src-d84effeba573f3362b2cd297e86e90ec55f99cfc.tar.bz2 |
Use IPC::Sender and IPC::Listener in content.
This replaces uses of IPC::Message::Sender with IPC::Sender and
IPC::Channel::Listener with IPC::Listener. I also fixed up header files where
it was obvious.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10662005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143920 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu/gpu_channel_manager.h')
-rw-r--r-- | content/common/gpu/gpu_channel_manager.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/content/common/gpu/gpu_channel_manager.h b/content/common/gpu/gpu_channel_manager.h index 53e255f..735895e 100644 --- a/content/common/gpu/gpu_channel_manager.h +++ b/content/common/gpu/gpu_channel_manager.h @@ -12,8 +12,8 @@ #include "base/message_loop_proxy.h" #include "build/build_config.h" #include "content/common/gpu/gpu_memory_manager.h" -#include "ipc/ipc_channel.h" -#include "ipc/ipc_message.h" +#include "ipc/ipc_listener.h" +#include "ipc/ipc_sender.h" #include "ui/gfx/native_widget_types.h" namespace base { @@ -47,11 +47,11 @@ class SyncPointManager; // A GpuChannelManager can also be hosted in the browser process in single // process or in-process GPU modes. In this case there is no corresponding // GpuChildThread and this is the reason the GpuChildThread is referenced via -// a pointer to IPC::Message::Sender, which can be implemented by other hosts -// to send IPC messages to the browser process IO thread on the -// GpuChannelManager's behalf. -class GpuChannelManager : public IPC::Channel::Listener, - public IPC::Message::Sender, +// a pointer to IPC::Sender, which can be implemented by other hosts to send +// IPC messages to the browser process IO thread on the GpuChannelManager's +// behalf. +class GpuChannelManager : public IPC::Listener, + public IPC::Sender, public GpuMemoryManagerClient { public: GpuChannelManager(ChildThread* gpu_child_thread, @@ -78,7 +78,7 @@ class GpuChannelManager : public IPC::Channel::Listener, base::WeakPtrFactory<GpuChannelManager> weak_factory_; int GenerateRouteID(); - void AddRoute(int32 routing_id, IPC::Channel::Listener* listener); + void AddRoute(int32 routing_id, IPC::Listener* listener); void RemoveRoute(int32 routing_id); GpuMemoryManager* gpu_memory_manager() { return &gpu_memory_manager_; } |