Chromium Code Reviews| 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 14 matching lines...) Expand all Loading... | |
| 25 class PluginUpdater : public NotificationObserver { | 25 class PluginUpdater : public NotificationObserver { |
| 26 public: | 26 public: |
| 27 // Get a list of all the plugin groups. The caller should take ownership | 27 // Get a list of all the plugin groups. The caller should take ownership |
| 28 // of the returned ListValue. | 28 // of the returned ListValue. |
| 29 static ListValue* GetPluginGroupsData(); | 29 static ListValue* GetPluginGroupsData(); |
| 30 | 30 |
| 31 // Enable or disable a plugin group. | 31 // Enable or disable a plugin group. |
| 32 void EnablePluginGroup(bool enable, const string16& group_name); | 32 void EnablePluginGroup(bool enable, const string16& group_name); |
| 33 | 33 |
| 34 // Enable or disable a specific plugin file. | 34 // Enable or disable a specific plugin file. |
| 35 void EnablePluginFile(bool enable, const FilePath::StringType& file_path); | 35 void EnablePlugin(bool enable, |
| 36 const FilePath::StringType& file_path, | |
| 37 const string16& name); | |
|
jam
2010/12/17 19:14:45
can you add documentation to what "name" is? why
pastarmovj
2010/12/20 19:57:37
Done.
Bernhard Bauer
2010/12/20 22:30:28
Umm...?
| |
| 36 | 38 |
| 37 // Disable all plugin groups as defined by the user's preference file. | 39 // Disable all plugin groups as defined by the user's preference file. |
| 38 void DisablePluginGroupsFromPrefs(Profile* profile); | 40 void DisablePluginGroupsFromPrefs(Profile* profile); |
| 39 | 41 |
| 40 // Write the enable/disable status to the user's preference file. | 42 // Write the enable/disable status to the user's preference file. |
| 41 void UpdatePreferences(Profile* profile, int delay_ms); | 43 void UpdatePreferences(Profile* profile, int delay_ms); |
| 42 | 44 |
| 43 // NotificationObserver method overrides | 45 // NotificationObserver method overrides |
| 44 virtual void Observe(NotificationType type, | 46 virtual void Observe(NotificationType type, |
| 45 const NotificationSource& source, | 47 const NotificationSource& source, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 // Note: if you change this to false from true, you must update | 82 // Note: if you change this to false from true, you must update |
| 81 // kPluginsEnabledInternalPDF to be a new name (i.e. add 2, 3, 4...) at end. | 83 // kPluginsEnabledInternalPDF to be a new name (i.e. add 2, 3, 4...) at end. |
| 82 bool enable_internal_pdf_; | 84 bool enable_internal_pdf_; |
| 83 | 85 |
| 84 bool notify_pending_; | 86 bool notify_pending_; |
| 85 | 87 |
| 86 DISALLOW_COPY_AND_ASSIGN(PluginUpdater); | 88 DISALLOW_COPY_AND_ASSIGN(PluginUpdater); |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ | 91 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ |
| OLD | NEW |