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

Unified Diff: content/ppapi_plugin/ppapi_thread.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/common/view_messages.h ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/ppapi_plugin/ppapi_thread.h
diff --git a/content/ppapi_plugin/ppapi_thread.h b/content/ppapi_plugin/ppapi_thread.h
index a70e6d9a8f929c17bad173b11a6fc87167668567..8f7c901d787f2ede40899479607a406fc207f587 100644
--- a/content/ppapi_plugin/ppapi_thread.h
+++ b/content/ppapi_plugin/ppapi_thread.h
@@ -73,7 +73,7 @@ class PpapiThread : public ChildThread,
virtual base::WaitableEvent* GetShutdownEvent() OVERRIDE;
virtual IPC::PlatformFileForTransit ShareHandleWithRemote(
base::PlatformFile handle,
- const IPC::SyncChannel& channel,
+ base::ProcessId peer_pid,
bool should_close_source) OVERRIDE;
virtual uint32 Register(
ppapi::proxy::PluginDispatcher* plugin_dispatcher) OVERRIDE;
@@ -90,7 +90,9 @@ class PpapiThread : public ChildThread,
// Message handlers.
void OnLoadPlugin(const FilePath& path,
const ppapi::PpapiPermissions& permissions);
- void OnCreateChannel(int renderer_id, bool incognito);
+ void OnCreateChannel(base::ProcessId renderer_pid,
+ int renderer_child_id,
+ bool incognito);
void OnResourceReply(
const ppapi::proxy::ResourceMessageReplyParams& reply_params,
const IPC::Message& nested_msg);
@@ -98,7 +100,8 @@ class PpapiThread : public ChildThread,
// Sets up the channel to the given renderer. On success, returns true and
// fills the given ChannelHandle with the information from the new channel.
- bool SetupRendererChannel(int renderer_id,
+ bool SetupRendererChannel(base::ProcessId renderer_pid,
+ int renderer_child_id,
bool incognito,
IPC::ChannelHandle* handle);
« no previous file with comments | « content/common/view_messages.h ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698