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

Unified Diff: content/browser/ppapi_plugin_process_host.cc

Issue 10919169: Change how PepperMessageFilter is constructed, to simplify its use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/browser/ppapi_plugin_process_host.cc
===================================================================
--- content/browser/ppapi_plugin_process_host.cc (revision 155271)
+++ content/browser/ppapi_plugin_process_host.cc (working copy)
@@ -75,9 +75,9 @@
PpapiPluginProcessHost* PpapiPluginProcessHost::CreatePluginHost(
const content::PepperPluginInfo& info,
const FilePath& profile_data_directory,
- net::HostResolver* host_resolver) {
+ int render_process_id) {
PpapiPluginProcessHost* plugin_host = new PpapiPluginProcessHost(
- info, profile_data_directory, host_resolver);
+ info, profile_data_directory, render_process_id);
if (plugin_host->Init(info))
return plugin_host;
@@ -116,7 +116,7 @@
PpapiPluginProcessHost::PpapiPluginProcessHost(
const content::PepperPluginInfo& info,
const FilePath& profile_data_directory,
- net::HostResolver* host_resolver)
+ int render_process_id)
: network_observer_(new PluginNetworkObserver(this)),
profile_data_directory_(profile_data_directory),
is_broker_(false) {
@@ -124,7 +124,7 @@
content::PROCESS_TYPE_PPAPI_PLUGIN, this));
filter_ = new PepperMessageFilter(PepperMessageFilter::PLUGIN,
- host_resolver);
+ render_process_id);
ppapi::PpapiPermissions permissions(info.permissions);
host_impl_ = new content::BrowserPpapiHostImpl(this, permissions);

Powered by Google App Engine
This is Rietveld 408576698