| OLD | NEW |
| 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 Loading... |
| 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, const FilePath::StringType& file_path); |
| 40 | 40 |
| 41 // Disable all plugin groups as defined by the user's preference file. | 41 // Disable all plugin groups as defined by the user's preference file. |
| 42 void DisablePluginGroupsFromPrefs(Profile* profile); | 42 void DisablePluginGroupsFromPrefs(Profile* profile); |
| 43 | 43 |
| 44 // Write the enable/disable status to the user's preference file. | 44 // Write the enable/disable status to the user's preference file. |
| 45 void UpdatePreferences(Profile* profile, int delay_ms); | 45 void UpdatePreferences(Profile* profile, int delay_ms); |
| 46 | 46 |
| 47 // NotificationObserver method overrides | 47 // NotificationObserver method overrides |
| 48 virtual void Observe(NotificationType type, | 48 virtual void Observe(NotificationType type, |
| 49 const NotificationSource& source, | 49 const NotificationSource& source, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Note: if you change this to false from true, you must update | 85 // 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. | 86 // kPluginsEnabledInternalPDF to be a new name (i.e. add 2, 3, 4...) at end. |
| 87 bool enable_internal_pdf_; | 87 bool enable_internal_pdf_; |
| 88 | 88 |
| 89 bool notify_pending_; | 89 bool notify_pending_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(PluginUpdater); | 91 DISALLOW_COPY_AND_ASSIGN(PluginUpdater); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ | 94 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ |
| OLD | NEW |