From ff4fa715ce2b5de9a2ec0b0601188fae9e835676 Mon Sep 17 00:00:00 2001 From: "bauerb@chromium.org" Date: Wed, 28 Sep 2011 22:05:13 +0000 Subject: Use base::Bind in plugin-related chrome/browser/ code. BUG=35223 TEST=none Review URL: http://codereview.chromium.org/8066004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103192 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/plugin_prefs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/browser/plugin_prefs.h') diff --git a/chrome/browser/plugin_prefs.h b/chrome/browser/plugin_prefs.h index 9201dbf..c0dd445 100644 --- a/chrome/browser/plugin_prefs.h +++ b/chrome/browser/plugin_prefs.h @@ -81,10 +81,12 @@ class PluginPrefs : public base::RefCountedThreadSafe, void EnablePluginGroup(bool enable, const string16& group_name); // Enable or disable a specific plugin file. + // Returns false if the plug-in state cannot be changed because of a policy. bool EnablePlugin(bool enable, const FilePath& file_path); // Enable or disable a plug-in in all profiles. This sets a default for // profiles which are created later as well. + // Returns false if the plug-in state cannot be changed because of a policy. // This method should only be called on the UI thread. static bool EnablePluginGlobally(bool enable, const FilePath& file_path); @@ -121,6 +123,9 @@ class PluginPrefs : public base::RefCountedThreadSafe, // Returns the plugin list to use, either the singleton or the override. webkit::npapi::PluginList* GetPluginList(); + // Called on the file thread to update the plug-in state. + void EnablePluginInternal(bool enabled, const FilePath& path); + // Called on the file thread to get the data necessary to update the saved // preferences. void GetPreferencesDataOnFileThread(); -- cgit v1.1