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

Unified Diff: content/renderer/pepper/pepper_broker_impl.h

Issue 11722017: Use an explicit PID for duplicating Pepper handles rather than the Channel's. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 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/public/renderer/renderer_ppapi_host.h ('k') | content/renderer/pepper/pepper_broker_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_broker_impl.h
diff --git a/content/renderer/pepper/pepper_broker_impl.h b/content/renderer/pepper/pepper_broker_impl.h
index 6ac31bb196bb761d6d8298726a289cd074c324a3..d3653bb372b1650122ed3cf3a381f5cbaa6e7e9b 100644
--- a/content/renderer/pepper/pepper_broker_impl.h
+++ b/content/renderer/pepper/pepper_broker_impl.h
@@ -6,6 +6,7 @@
#define CONTENT_RENDERER_PEPPER_PEPPER_BROKER_IMPL_H_
#include "base/memory/ref_counted.h"
+#include "base/process.h"
#include "content/common/content_export.h"
#include "ppapi/proxy/proxy_channel.h"
#include "webkit/plugins/ppapi/plugin_delegate.h"
@@ -37,7 +38,8 @@ class CONTENT_EXPORT PepperBrokerDispatcherWrapper {
PepperBrokerDispatcherWrapper();
~PepperBrokerDispatcherWrapper();
- bool Init(const IPC::ChannelHandle& channel_handle);
+ bool Init(base::ProcessId broker_pid,
+ const IPC::ChannelHandle& channel_handle);
int32_t SendHandleToBroker(PP_Instance instance,
base::SyncSocket::Handle handle);
@@ -60,7 +62,8 @@ class PepperBrokerImpl : public webkit::ppapi::PluginDelegate::Broker,
void AddPendingConnect(webkit::ppapi::PPB_Broker_Impl* client);
// Called when the channel to the broker has been established.
- void OnBrokerChannelConnected(const IPC::ChannelHandle& channel_handle);
+ void OnBrokerChannelConnected(base::ProcessId broker_pid,
+ const IPC::ChannelHandle& channel_handle);
// Called when we know whether permission to access the PPAPI broker was
// granted.
« no previous file with comments | « content/public/renderer/renderer_ppapi_host.h ('k') | content/renderer/pepper/pepper_broker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698