From bb7917f1f130da7ef16f5653fbc6aa778e00e044 Mon Sep 17 00:00:00 2001 From: "jschuh@chromium.org" Date: Thu, 29 Mar 2012 16:29:01 +0000 Subject: Revert 129627 - Add a sandbox API for broker handle duplication BUG=119250 Review URL: https://chromiumcodereview.appspot.com/9838083 TBR=jschuh@chromium.org Review URL: https://chromiumcodereview.appspot.com/9924010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129629 0039d316-1c4b-4281-b951-d872f2087c98 --- content/plugin/plugin_channel.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'content/plugin/plugin_channel.h') diff --git a/content/plugin/plugin_channel.h b/content/plugin/plugin_channel.h index cb72391..27acc4c 100644 --- a/content/plugin/plugin_channel.h +++ b/content/plugin/plugin_channel.h @@ -1,4 +1,4 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -36,6 +36,7 @@ class PluginChannel : public NPChannelBase { virtual bool Send(IPC::Message* msg) OVERRIDE; virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; + base::ProcessHandle renderer_handle() const { return renderer_handle_; } int renderer_id() { return renderer_id_; } virtual int GenerateRouteID() OVERRIDE; @@ -58,6 +59,7 @@ class PluginChannel : public NPChannelBase { protected: // IPC::Channel::Listener implementation: + virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; virtual void OnChannelError() OVERRIDE; virtual void CleanUp() OVERRIDE; @@ -86,6 +88,9 @@ class PluginChannel : public NPChannelBase { std::vector > plugin_stubs_; + // Handle to the renderer process who is on the other side of the channel. + base::ProcessHandle renderer_handle_; + // The id of the renderer who is on the other side of the channel. int renderer_id_; -- cgit v1.1