| Index: content/browser/ppapi_plugin_process_host.cc
|
| ===================================================================
|
| --- content/browser/ppapi_plugin_process_host.cc (revision 138610)
|
| +++ content/browser/ppapi_plugin_process_host.cc (working copy)
|
| @@ -70,9 +70,10 @@
|
|
|
| PpapiPluginProcessHost* PpapiPluginProcessHost::CreatePluginHost(
|
| const content::PepperPluginInfo& info,
|
| + const FilePath& data_directory_path,
|
| net::HostResolver* host_resolver) {
|
| PpapiPluginProcessHost* plugin_host =
|
| - new PpapiPluginProcessHost(host_resolver);
|
| + new PpapiPluginProcessHost(info.name, data_directory_path, host_resolver);
|
| if (plugin_host->Init(info))
|
| return plugin_host;
|
|
|
| @@ -108,14 +109,24 @@
|
| RequestPluginChannel(client);
|
| }
|
|
|
| -PpapiPluginProcessHost::PpapiPluginProcessHost(net::HostResolver* host_resolver)
|
| - : filter_(new PepperMessageFilter(PepperMessageFilter::PLUGIN,
|
| - host_resolver)),
|
| - network_observer_(new PluginNetworkObserver(this)),
|
| +PpapiPluginProcessHost::PpapiPluginProcessHost(
|
| + const std::string& plugin_name,
|
| + const FilePath& profile_data_directory,
|
| + net::HostResolver* host_resolver)
|
| + : network_observer_(new PluginNetworkObserver(this)),
|
| + profile_data_directory_(profile_data_directory),
|
| is_broker_(false) {
|
| process_.reset(new BrowserChildProcessHostImpl(
|
| content::PROCESS_TYPE_PPAPI_PLUGIN, this));
|
| +
|
| + filter_ = new PepperMessageFilter(
|
| + PepperMessageFilter::PLUGIN, host_resolver);
|
| +
|
| + file_filter_ = new PepperTrustedFileMessageFilter(
|
| + process_->GetData().id, plugin_name, profile_data_directory);
|
| +
|
| process_->GetHost()->AddFilter(filter_.get());
|
| + process_->GetHost()->AddFilter(file_filter_.get());
|
| }
|
|
|
| PpapiPluginProcessHost::PpapiPluginProcessHost()
|
|
|