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 <set> | |
10 #include <vector> | |
11 | |
12 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
13 #include "base/file_path.h" | 10 #include "base/file_path.h" |
14 #include "base/linked_ptr.h" | 11 #include "base/linked_ptr.h" |
15 #include "base/singleton.h" | 12 #include "base/singleton.h" |
16 | 13 |
17 class ListValue; | 14 class ListValue; |
18 class Profile; | 15 class Profile; |
19 | 16 |
20 namespace plugin_updater { | 17 namespace plugin_updater { |
21 | 18 |
22 // Get a list of all the Plugin groups. | 19 // Get a list of all the Plugin groups. |
23 ListValue* GetPluginGroupsData(); | 20 ListValue* GetPluginGroupsData(); |
24 | 21 |
25 // Enable or disable a plugin group. | 22 // Enable or disable a plugin group. |
26 void EnablePluginGroup(bool enable, const string16& group_name); | 23 void EnablePluginGroup(bool enable, const string16& group_name); |
27 | 24 |
28 // Enable or disable a specific plugin file. | 25 // Enable or disable a specific plugin file. |
29 void EnablePluginFile(bool enable, const FilePath::StringType& file_path); | 26 void EnablePluginFile(bool enable, const FilePath::StringType& file_path); |
30 | 27 |
31 // Disable all plugin groups as defined by the user's preference file. | 28 // Disable all plugin groups as defined by the user's preference file. |
32 void DisablePluginGroupsFromPrefs(Profile* profile); | 29 void DisablePluginGroupsFromPrefs(Profile* profile); |
33 | 30 |
34 // Write the enable/disable status to the user's preference file. | 31 // Write the enable/disable status to the user's preference file. |
35 void UpdatePreferences(Profile* profile); | 32 void UpdatePreferences(Profile* profile); |
36 | 33 |
37 } // namespace plugin_updater | 34 } // namespace plugin_updater |
38 | 35 |
39 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ | 36 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ |
OLD | NEW |