summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_prefs.h
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-28 22:05:13 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-28 22:05:13 +0000
commitff4fa715ce2b5de9a2ec0b0601188fae9e835676 (patch)
treee26d86b4a9dada12bb0b6bc921f43a965e686647 /chrome/browser/plugin_prefs.h
parentb0af4f572f1e082a876a1e87eb2933c5876e0ba0 (diff)
downloadchromium_src-ff4fa715ce2b5de9a2ec0b0601188fae9e835676.zip
chromium_src-ff4fa715ce2b5de9a2ec0b0601188fae9e835676.tar.gz
chromium_src-ff4fa715ce2b5de9a2ec0b0601188fae9e835676.tar.bz2
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
Diffstat (limited to 'chrome/browser/plugin_prefs.h')
-rw-r--r--chrome/browser/plugin_prefs.h5
1 files changed, 5 insertions, 0 deletions
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<PluginPrefs>,
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<PluginPrefs>,
// 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();