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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Enable or disable a plugin group. | 24 // Enable or disable a plugin group. |
25 void EnablePluginGroup(bool enable, const string16& group_name); | 25 void EnablePluginGroup(bool enable, const string16& group_name); |
26 | 26 |
27 // Enable or disable a specific plugin file. | 27 // Enable or disable a specific plugin file. |
28 void EnablePluginFile(bool enable, const FilePath::StringType& file_path); | 28 void EnablePluginFile(bool enable, const FilePath::StringType& file_path); |
29 | 29 |
30 // Disable all plugin groups as defined by the user's preference file. | 30 // Disable all plugin groups as defined by the user's preference file. |
31 void DisablePluginGroupsFromPrefs(Profile* profile); | 31 void DisablePluginGroupsFromPrefs(Profile* profile); |
32 | 32 |
| 33 // Disable all plugins groups that are known to be outdated, according to the |
| 34 // information hardcoded in PluginGroup, to make sure that they can't be loaded |
| 35 // on a web page and instead show a UI to update to the latest version. |
| 36 void DisableOutdatedPluginGroups(); |
| 37 |
33 // Write the enable/disable status to the user's preference file. | 38 // Write the enable/disable status to the user's preference file. |
34 void UpdatePreferences(Profile* profile); | 39 void UpdatePreferences(Profile* profile); |
35 | 40 |
36 } // namespace plugin_updater | 41 } // namespace plugin_updater |
37 | 42 |
38 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ | 43 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ |
OLD | NEW |