summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_channel_proxy.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-11 22:35:26 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-11 22:35:26 +0000
commit57319cecbf1277567dbd0328fab1ccb741f022ac (patch)
tree24f52f0c4dd774a09c8a3d7ae5ae781e83e1ec27 /ipc/ipc_channel_proxy.h
parent354d49aec9a0bbae84a558bc2cddf4ccb200f955 (diff)
downloadchromium_src-57319cecbf1277567dbd0328fab1ccb741f022ac.zip
chromium_src-57319cecbf1277567dbd0328fab1ccb741f022ac.tar.gz
chromium_src-57319cecbf1277567dbd0328fab1ccb741f022ac.tar.bz2
Separate out IPC::Message::Sender and Channel::Listener into a separate class.
I fixed the places that did IPC::Channel::Sender (I don't even know how this compiled, but I presume this means the "Sender" base class of the "Channel" which ends up being right). We can fix the other users of this later. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10541065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141534 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_channel_proxy.h')
-rw-r--r--ipc/ipc_channel_proxy.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/ipc/ipc_channel_proxy.h b/ipc/ipc_channel_proxy.h
index 6f5b96f..e323c0f 100644
--- a/ipc/ipc_channel_proxy.h
+++ b/ipc/ipc_channel_proxy.h
@@ -14,6 +14,8 @@
#include "base/synchronization/lock.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_channel_handle.h"
+#include "ipc/ipc_listener.h"
+#include "ipc/ipc_sender.h"
namespace IPC {
@@ -47,9 +49,8 @@ class SendCallbackHelper;
// The consumer of IPC::ChannelProxy is responsible for allocating the Thread
// instance where the IPC::Channel will be created and operated.
//
-class IPC_EXPORT ChannelProxy : public Message::Sender {
+class IPC_EXPORT ChannelProxy : public Sender {
public:
-
struct MessageFilterTraits;
// A class that receives messages on the thread where the IPC channel is
@@ -124,13 +125,13 @@ class IPC_EXPORT ChannelProxy : public Message::Sender {
// IPC::Channel should be created.
ChannelProxy(const IPC::ChannelHandle& channel_handle,
Channel::Mode mode,
- Channel::Listener* listener,
+ Listener* listener,
base::MessageLoopProxy* ipc_thread_loop);
// Creates an uninitialized channel proxy. Init must be called to receive
// or send any messages. This two-step setup allows message filters to be
// added before any messages are sent or received.
- ChannelProxy(Channel::Listener* listener,
+ ChannelProxy(Listener* listener,
base::MessageLoopProxy* ipc_thread_loop);
virtual ~ChannelProxy();
@@ -194,9 +195,9 @@ class IPC_EXPORT ChannelProxy : public Message::Sender {
// Used internally to hold state that is referenced on the IPC thread.
class Context : public base::RefCountedThreadSafe<Context>,
- public Channel::Listener {
+ public Listener {
public:
- Context(Channel::Listener* listener, base::MessageLoopProxy* ipc_thread);
+ Context(Listener* listener, base::MessageLoopProxy* ipc_thread);
void ClearIPCMessageLoop() { ipc_message_loop_ = NULL; }
base::MessageLoopProxy* ipc_message_loop() const {
return ipc_message_loop_.get();
@@ -210,7 +211,7 @@ class IPC_EXPORT ChannelProxy : public Message::Sender {
friend class base::RefCountedThreadSafe<Context>;
virtual ~Context();
- // IPC::Channel::Listener methods:
+ // IPC::Listener methods:
virtual bool OnMessageReceived(const Message& message) OVERRIDE;
virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
virtual void OnChannelError() OVERRIDE;
@@ -250,7 +251,7 @@ class IPC_EXPORT ChannelProxy : public Message::Sender {
void OnDispatchError();
scoped_refptr<base::MessageLoopProxy> listener_message_loop_;
- Channel::Listener* listener_;
+ Listener* listener_;
// List of filters. This is only accessed on the IPC thread.
std::vector<scoped_refptr<MessageFilter> > filters_;