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

Unified Diff: content/common/npobject_proxy.h

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
« no previous file with comments | « content/common/npobject_base.h ('k') | content/common/npobject_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/npobject_proxy.h
diff --git a/content/common/npobject_proxy.h b/content/common/npobject_proxy.h
index 23e0183a33f798a41368706b933b2441f7c73135..5a2e742c8511dadf4e52c372809b0c32b9fe55c3 100644
--- a/content/common/npobject_proxy.h
+++ b/content/common/npobject_proxy.h
@@ -12,7 +12,8 @@
#include "base/memory/ref_counted.h"
#include "content/common/npobject_base.h"
#include "googleurl/src/gurl.h"
-#include "ipc/ipc_channel.h"
+#include "ipc/ipc_listener.h"
+#include "ipc/ipc_sender.h"
#include "third_party/npapi/bindings/npruntime.h"
#include "ui/gfx/native_widget_types.h"
@@ -27,8 +28,8 @@ struct NPObject;
// channel (specifically, a NPChannelBase). The NPObjectStub on the other
// side translates the IPC messages into calls to the actual NPObject, and
// returns the marshalled result.
-class NPObjectProxy : public IPC::Channel::Listener,
- public IPC::Message::Sender,
+class NPObjectProxy : public IPC::Listener,
+ public IPC::Sender,
public NPObjectBase {
public:
virtual ~NPObjectProxy();
@@ -38,7 +39,7 @@ class NPObjectProxy : public IPC::Channel::Listener,
gfx::NativeViewId containing_window,
const GURL& page_url);
- // IPC::Message::Sender implementation:
+ // IPC::Sender implementation:
virtual bool Send(IPC::Message* msg) OVERRIDE;
int route_id() { return route_id_; }
NPChannelBase* channel() { return channel_; }
@@ -93,7 +94,7 @@ class NPObjectProxy : public IPC::Channel::Listener,
// NPObjectBase implementation.
virtual NPObject* GetUnderlyingNPObject() OVERRIDE;
- virtual IPC::Channel::Listener* GetChannelListener() OVERRIDE;
+ virtual IPC::Listener* GetChannelListener() OVERRIDE;
private:
NPObjectProxy(NPChannelBase* channel,
@@ -101,7 +102,7 @@ class NPObjectProxy : public IPC::Channel::Listener,
gfx::NativeViewId containing_window,
const GURL& page_url);
- // IPC::Channel::Listener implementation:
+ // IPC::Listener implementation:
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
virtual void OnChannelError() OVERRIDE;
« no previous file with comments | « content/common/npobject_base.h ('k') | content/common/npobject_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698