Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(756)

Unified Diff: chrome/browser/plugins/chrome_plugin_service_filter.h

Issue 104833006: Switch ContentSettingsObserver to be a RenderFrameObserver instead of a RenderViewObserver (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/plugins/chrome_plugin_service_filter.h
===================================================================
--- chrome/browser/plugins/chrome_plugin_service_filter.h (revision 241294)
+++ 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);
« no previous file with comments | « chrome/browser/infobars/insecure_content_infobar_delegate.cc ('k') | chrome/browser/plugins/chrome_plugin_service_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698