summaryrefslogtreecommitdiffstats
path: root/content/browser/plugin_service_impl.h
diff options
context:
space:
mode:
authorcevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-01 18:20:54 +0000
committercevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-01 18:20:54 +0000
commit6be31d20e5c3727f136b8dfe06cd7f27ebf898bb (patch)
tree4fd003b303a8aad479b3d97fd4d1506817e64c3a /content/browser/plugin_service_impl.h
parentebee9ccaecaf57a0d2b8a36a41de689eef977fea (diff)
downloadchromium_src-6be31d20e5c3727f136b8dfe06cd7f27ebf898bb.zip
chromium_src-6be31d20e5c3727f136b8dfe06cd7f27ebf898bb.tar.gz
chromium_src-6be31d20e5c3727f136b8dfe06cd7f27ebf898bb.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. (Reland https://codereview.chromium.org/12086077 with Android test tweak) BUG=172573 R=jam@chromium.org Review URL: https://codereview.chromium.org/12092107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_service_impl.h')
-rw-r--r--content/browser/plugin_service_impl.h14
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)