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

Unified Diff: content/common/np_channel_base.h

Issue 9958034: Convert plugin and GPU process to brokered handle duplication. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/np_channel_base.h
===================================================================
--- content/common/np_channel_base.h (revision 131361)
+++ content/common/np_channel_base.h (working copy)
@@ -12,6 +12,7 @@
#include "base/hash_tables.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/process.h"
#include "content/common/message_router.h"
#include "content/common/npobject_base.h"
#include "ipc/ipc_channel_handle.h"
@@ -75,7 +76,7 @@
// IPC::Message::Sender implementation:
virtual bool Send(IPC::Message* msg) OVERRIDE;
- int peer_pid() { return peer_pid_; }
+ base::ProcessId peer_pid() { return channel_->peer_pid(); }
IPC::ChannelHandle channel_handle() const { return channel_handle_; }
// Returns the number of open NPObject channels in this process.

Powered by Google App Engine
This is Rietveld 408576698