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

Side by Side Diff: chrome/browser/plugin_updater.h

Issue 5699005: Policy: Re-enabled plugin still disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added empty group prunning. Created 9 years, 11 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PLUGIN_UPDATER_H_ 5 #ifndef CHROME_BROWSER_PLUGIN_UPDATER_H_
6 #define CHROME_BROWSER_PLUGIN_UPDATER_H_ 6 #define CHROME_BROWSER_PLUGIN_UPDATER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 class PluginUpdater : public NotificationObserver { 29 class PluginUpdater : public NotificationObserver {
30 public: 30 public:
31 // Get a list of all the plugin groups. The caller should take ownership 31 // Get a list of all the plugin groups. The caller should take ownership
32 // of the returned ListValue. 32 // of the returned ListValue.
33 static ListValue* GetPluginGroupsData(); 33 static ListValue* GetPluginGroupsData();
34 34
35 // Enable or disable a plugin group. 35 // Enable or disable a plugin group.
36 void EnablePluginGroup(bool enable, const string16& group_name); 36 void EnablePluginGroup(bool enable, const string16& group_name);
37 37
38 // Enable or disable a specific plugin file. 38 // Enable or disable a specific plugin file.
39 void EnablePluginFile(bool enable, const FilePath::StringType& file_path); 39 void EnablePlugin(bool enable,
40 const FilePath::StringType& file_path);
jam 2011/01/19 20:22:09 nit: i think these two parameters can fit on the s
pastarmovj 2011/01/19 23:39:17 Done.
40 41
41 // Disable all plugin groups as defined by the user's preference file. 42 // Disable all plugin groups as defined by the user's preference file.
42 void DisablePluginGroupsFromPrefs(Profile* profile); 43 void DisablePluginGroupsFromPrefs(Profile* profile);
43 44
44 // Write the enable/disable status to the user's preference file. 45 // Write the enable/disable status to the user's preference file.
45 void UpdatePreferences(Profile* profile, int delay_ms); 46 void UpdatePreferences(Profile* profile, int delay_ms);
46 47
47 // NotificationObserver method overrides 48 // NotificationObserver method overrides
48 virtual void Observe(NotificationType type, 49 virtual void Observe(NotificationType type,
49 const NotificationSource& source, 50 const NotificationSource& source,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Note: if you change this to false from true, you must update 86 // Note: if you change this to false from true, you must update
86 // kPluginsEnabledInternalPDF to be a new name (i.e. add 2, 3, 4...) at end. 87 // kPluginsEnabledInternalPDF to be a new name (i.e. add 2, 3, 4...) at end.
87 bool enable_internal_pdf_; 88 bool enable_internal_pdf_;
88 89
89 bool notify_pending_; 90 bool notify_pending_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(PluginUpdater); 92 DISALLOW_COPY_AND_ASSIGN(PluginUpdater);
92 }; 93 };
93 94
94 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ 95 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698