| Index: chrome/browser/plugins/chrome_plugin_service_filter.h
|
| ===================================================================
|
| --- chrome/browser/plugins/chrome_plugin_service_filter.h (revision 240362)
|
| +++ chrome/browser/plugins/chrome_plugin_service_filter.h (working copy)
|
| @@ -23,6 +23,10 @@
|
| class PluginPrefs;
|
| class Profile;
|
|
|
| +namespace content {
|
| +class WebContents;
|
| +}
|
| +
|
| // This class must be created (by calling the |GetInstance| method) on the UI
|
| // thread, but is safe to use on any thread after that.
|
| class ChromePluginServiceFilter : public content::PluginServiceFilter,
|
| @@ -55,8 +59,13 @@
|
| void AuthorizePlugin(int render_process_id,
|
| const base::FilePath& plugin_path);
|
|
|
| - // Authorizes all plug-ins for a given process.
|
| - void AuthorizeAllPlugins(int render_process_id);
|
| + // Authorizes all plug-ins for a given WebContents. If |load_blocked| is true,
|
| + // then the renderer is told to load the plugin with given |identifier| (or
|
| + // pllugins if |identifier| is empty).
|
| + // This method can only be called on the UI thread.
|
| + void AuthorizeAllPlugins(content::WebContents* web_contents,
|
| + bool load_blocked,
|
| + const std::string& identifier);
|
|
|
| // Returns whether the plugin is found in restricted_plugins_.
|
| bool IsPluginRestricted(const base::FilePath& plugin_path);
|
|
|