From dd9a0958e0d3e43f156b83d5e0feed841312e2a9 Mon Sep 17 00:00:00 2001 From: "tsepez@chromium.org" Date: Thu, 31 May 2012 20:11:31 +0000 Subject: Run a ppapi process per (profile, plugin) pair. This prevents sharing a ppapi process across profiles. This is a good idea for the same reasons that we don't share renderers across profiles. This is also a prerequisite for fixing the associated bug. BUG=127624 Review URL: https://chromiumcodereview.appspot.com/10383202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139848 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/plugin_service_impl.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'content/browser/plugin_service_impl.h') diff --git a/content/browser/plugin_service_impl.h b/content/browser/plugin_service_impl.h index b3fcbf9..fed0c76 100644 --- a/content/browser/plugin_service_impl.h +++ b/content/browser/plugin_service_impl.h @@ -128,6 +128,7 @@ class CONTENT_EXPORT PluginServiceImpl const FilePath& plugin_path); PpapiPluginProcessHost* FindOrStartPpapiPluginProcess( const FilePath& plugin_path, + const FilePath& profile_data_directory, PpapiPluginProcessHost::PluginClient* client); PpapiPluginProcessHost* FindOrStartPpapiBrokerProcess( const FilePath& plugin_path); @@ -141,7 +142,8 @@ class CONTENT_EXPORT PluginServiceImpl const GURL& page_url, const std::string& mime_type, PluginProcessHost::Client* client); - void OpenChannelToPpapiPlugin(const FilePath& path, + void OpenChannelToPpapiPlugin(const FilePath& plugin_path, + const FilePath& profile_data_directory, PpapiPluginProcessHost::PluginClient* client); void OpenChannelToPpapiBroker(const FilePath& path, PpapiPluginProcessHost::BrokerClient* client); @@ -173,7 +175,9 @@ class CONTENT_EXPORT PluginServiceImpl // has been started by this service. Returns NULL if no process has been // started. PluginProcessHost* FindNpapiPluginProcess(const FilePath& plugin_path); - PpapiPluginProcessHost* FindPpapiPluginProcess(const FilePath& plugin_path); + PpapiPluginProcessHost* FindPpapiPluginProcess( + const FilePath& plugin_path, + const FilePath& profile_data_directory); PpapiPluginProcessHost* FindPpapiBrokerProcess(const FilePath& broker_path); void RegisterPepperPlugins(); -- cgit v1.1