OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // plugin groups as defined by the user's preferences. | 44 // plugin groups as defined by the user's preferences. |
45 void SetProfile(Profile* profile); | 45 void SetProfile(Profile* profile); |
46 | 46 |
47 // Called at shutdown before the profile is destroyed. | 47 // Called at shutdown before the profile is destroyed. |
48 void Shutdown(); | 48 void Shutdown(); |
49 | 49 |
50 // Write the enable/disable status to the user's preference file. | 50 // Write the enable/disable status to the user's preference file. |
51 void UpdatePreferences(Profile* profile, int delay_ms); | 51 void UpdatePreferences(Profile* profile, int delay_ms); |
52 | 52 |
53 // NotificationObserver method overrides | 53 // NotificationObserver method overrides |
54 virtual void Observe(NotificationType type, | 54 virtual void Observe(int type, |
55 const NotificationSource& source, | 55 const NotificationSource& source, |
56 const NotificationDetails& details); | 56 const NotificationDetails& details); |
57 | 57 |
58 static PluginUpdater* GetInstance(); | 58 static PluginUpdater* GetInstance(); |
59 | 59 |
60 static void RegisterPrefs(PrefService* prefs); | 60 static void RegisterPrefs(PrefService* prefs); |
61 | 61 |
62 private: | 62 private: |
63 PluginUpdater(); | 63 PluginUpdater(); |
64 virtual ~PluginUpdater() {} | 64 virtual ~PluginUpdater() {} |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 friend struct DefaultSingletonTraits<PluginUpdater>; | 97 friend struct DefaultSingletonTraits<PluginUpdater>; |
98 | 98 |
99 PrefChangeRegistrar registrar_; | 99 PrefChangeRegistrar registrar_; |
100 | 100 |
101 bool notify_pending_; | 101 bool notify_pending_; |
102 | 102 |
103 DISALLOW_COPY_AND_ASSIGN(PluginUpdater); | 103 DISALLOW_COPY_AND_ASSIGN(PluginUpdater); |
104 }; | 104 }; |
105 | 105 |
106 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ | 106 #endif // CHROME_BROWSER_PLUGIN_UPDATER_H_ |
OLD | NEW |