diff options
author | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-01 06:29:31 +0000 |
---|---|---|
committer | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-01 06:29:31 +0000 |
commit | 63f2720b53402b3558364833a3d8e9d29ef1b2c8 (patch) | |
tree | 952fb6b3c21b86a607e277424e816156e873ccbf /content/browser/plugin_service_impl.h | |
parent | a73aee064eb9e3d02e872a7d57fa238f62eb5b69 (diff) | |
download | chromium_src-63f2720b53402b3558364833a3d8e9d29ef1b2c8.zip chromium_src-63f2720b53402b3558364833a3d8e9d29ef1b2c8.tar.gz chromium_src-63f2720b53402b3558364833a3d8e9d29ef1b2c8.tar.bz2 |
Only permit plug-in loads in the browser if the plug-in isn't blocked or the
user has authorized it with a browser-mediated interaction.
BUG=172573
Review URL: https://codereview.chromium.org/12086077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180103 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_service_impl.h')
-rw-r--r-- | content/browser/plugin_service_impl.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/content/browser/plugin_service_impl.h b/content/browser/plugin_service_impl.h index 8808c4b..5ad03ed 100644 --- a/content/browser/plugin_service_impl.h +++ b/content/browser/plugin_service_impl.h @@ -120,13 +120,14 @@ class CONTENT_EXPORT PluginServiceImpl // 'plugin_path' if needed. If the process fails to start, the return value // is NULL. Must be called on the IO thread. PluginProcessHost* FindOrStartNpapiPluginProcess( - const FilePath& plugin_path); + int render_process_id, const FilePath& plugin_path); PpapiPluginProcessHost* FindOrStartPpapiPluginProcess( + int render_process_id, const FilePath& plugin_path, const FilePath& profile_data_directory, PpapiPluginProcessHost::PluginClient* client); PpapiPluginProcessHost* FindOrStartPpapiBrokerProcess( - const FilePath& plugin_path); + int render_process_id, const FilePath& plugin_path); // Opens a channel to a plugin process for the given mime type, starting // a new plugin process if necessary. This must be called on the IO thread @@ -137,10 +138,12 @@ class CONTENT_EXPORT PluginServiceImpl const GURL& page_url, const std::string& mime_type, PluginProcessHost::Client* client); - void OpenChannelToPpapiPlugin(const FilePath& plugin_path, + void OpenChannelToPpapiPlugin(int render_process_id, + const FilePath& plugin_path, const FilePath& profile_data_directory, PpapiPluginProcessHost::PluginClient* client); - void OpenChannelToPpapiBroker(const FilePath& path, + void OpenChannelToPpapiBroker(int render_process_id, + const FilePath& path, PpapiPluginProcessHost::BrokerClient* client); // Cancels opening a channel to a NPAPI plugin. @@ -196,7 +199,8 @@ class CONTENT_EXPORT PluginServiceImpl // Helper so we can finish opening the channel after looking up the // plugin. - void FinishOpenChannelToPlugin(const FilePath& plugin_path, + void FinishOpenChannelToPlugin(int render_process_id, + const FilePath& plugin_path, PluginProcessHost::Client* client); #if defined(OS_POSIX) && !defined(OS_OPENBSD) && !defined(OS_ANDROID) |