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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

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/browser/ppapi_plugin_process_host.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index cd5dfadabef95828f16deae0c900faed29ac7ec9..27975a330b60cda77822ec75e16aac43db2ba921 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -136,19 +136,20 @@ class OpenChannelToPpapiPluginCallback
}
virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
- int* renderer_id) {
+ int* renderer_id) OVERRIDE {
*renderer_handle = filter()->peer_handle();
*renderer_id = filter()->render_process_id();
}
virtual void OnPpapiChannelOpened(const IPC::ChannelHandle& channel_handle,
- int plugin_child_id) {
+ base::ProcessId plugin_pid,
+ int plugin_child_id) OVERRIDE {
ViewHostMsg_OpenChannelToPepperPlugin::WriteReplyParams(
- reply_msg(), channel_handle, plugin_child_id);
+ reply_msg(), channel_handle, plugin_pid, plugin_child_id);
SendReplyAndDeleteThis();
}
- virtual bool OffTheRecord() {
+ virtual bool OffTheRecord() OVERRIDE {
return filter()->OffTheRecord();
}
@@ -174,20 +175,22 @@ class OpenChannelToPpapiBrokerCallback
virtual ~OpenChannelToPpapiBrokerCallback() {}
virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
- int* renderer_id) {
+ int* renderer_id) OVERRIDE {
*renderer_handle = filter_->peer_handle();
*renderer_id = filter_->render_process_id();
}
virtual void OnPpapiChannelOpened(const IPC::ChannelHandle& channel_handle,
- int /* plugin_child_id */) {
+ base::ProcessId plugin_pid,
+ int /* plugin_child_id */) OVERRIDE {
filter_->Send(new ViewMsg_PpapiBrokerChannelCreated(routing_id_,
request_id_,
+ plugin_pid,
channel_handle));
delete this;
}
- virtual bool OffTheRecord() {
+ virtual bool OffTheRecord() OVERRIDE {
return filter_->OffTheRecord();
}
« no previous file with comments | « content/browser/ppapi_plugin_process_host.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698