summaryrefslogtreecommitdiffstats
path: root/content/common/np_channel_base.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-25 17:03:10 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-25 17:03:10 +0000
commitd84effeba573f3362b2cd297e86e90ec55f99cfc (patch)
tree57ad855f15ab544aa6bb4b829a13afb825eb951c /content/common/np_channel_base.h
parent980ad60a008062fa7c9880ad5cdc8790be959afa (diff)
downloadchromium_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/np_channel_base.h')
-rw-r--r--content/common/np_channel_base.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/content/common/np_channel_base.h b/content/common/np_channel_base.h
index 8bacac3..f987044 100644
--- a/content/common/np_channel_base.h
+++ b/content/common/np_channel_base.h
@@ -47,8 +47,8 @@ inline size_t hash_value(NPObject* const& ptr) {
// Encapsulates an IPC channel between a renderer and another process. Used to
// proxy access to NP objects.
-class NPChannelBase : public IPC::Channel::Listener,
- public IPC::Message::Sender,
+class NPChannelBase : public IPC::Listener,
+ public IPC::Sender,
public base::RefCountedThreadSafe<NPChannelBase> {
public:
@@ -58,8 +58,7 @@ class NPChannelBase : public IPC::Channel::Listener,
// pass themselves for npobject). However the latter don't control the
// lifetime of this object because we don't want a leak of an NPObject to
// keep the channel around longer than necessary.
- void AddRoute(int route_id, IPC::Channel::Listener* listener,
- NPObjectBase* npobject);
+ void AddRoute(int route_id, IPC::Listener* listener, NPObjectBase* npobject);
void RemoveRoute(int route_id);
@@ -73,7 +72,7 @@ class NPChannelBase : public IPC::Channel::Listener,
int GetExistingRouteForNPObjectStub(NPObject* npobject);
- // IPC::Message::Sender implementation:
+ // IPC::Sender implementation:
virtual bool Send(IPC::Message* msg) OVERRIDE;
base::ProcessId peer_pid() { return channel_->peer_pid(); }
@@ -135,7 +134,7 @@ class NPChannelBase : public IPC::Channel::Listener,
// Implemented by derived classes to handle control messages
virtual bool OnControlMessageReceived(const IPC::Message& msg);
- // IPC::Channel::Listener implementation:
+ // IPC::Listener implementation:
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
virtual void OnChannelError() OVERRIDE;