Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 void FirePermissionLevelChangedEvent( | 127 void FirePermissionLevelChangedEvent( |
| 128 const message_center::NotifierId& notifier_id, | 128 const message_center::NotifierId& notifier_id, |
| 129 bool enabled); | 129 bool enabled); |
| 130 | 130 |
| 131 // extensions::ExtensionRegistryObserver: | 131 // extensions::ExtensionRegistryObserver: |
| 132 virtual void OnExtensionUninstalled( | 132 virtual void OnExtensionUninstalled( |
| 133 content::BrowserContext* browser_context, | 133 content::BrowserContext* browser_context, |
| 134 const extensions::Extension* extension, | 134 const extensions::Extension* extension, |
| 135 extensions::UninstallReason reason) OVERRIDE; | 135 extensions::UninstallReason reason) OVERRIDE; |
| 136 | 136 |
| 137 // PermissionContextBase: | |
| 138 virtual void UpdateContentSetting( | |
|
Peter Beverloo
2014/09/23 15:58:47
nit: we should be able to format this code as:
vi
Miguel Garcia
2014/09/23 16:53:39
Done.
| |
| 139 const GURL& requesting_origin, | |
| 140 const GURL& embedder_origin, | |
| 141 bool allowed) OVERRIDE; | |
| 142 | |
| 137 // The profile which owns this object. | 143 // The profile which owns this object. |
| 138 Profile* profile_; | 144 Profile* profile_; |
| 139 | 145 |
| 140 // Prefs listener for disabled_extension_id. | 146 // Prefs listener for disabled_extension_id. |
| 141 StringListPrefMember disabled_extension_id_pref_; | 147 StringListPrefMember disabled_extension_id_pref_; |
| 142 | 148 |
| 143 // Prefs listener for disabled_system_component_id. | 149 // Prefs listener for disabled_system_component_id. |
| 144 StringListPrefMember disabled_system_component_id_pref_; | 150 StringListPrefMember disabled_system_component_id_pref_; |
| 145 | 151 |
| 146 // On-memory data for the availability of extensions. | 152 // On-memory data for the availability of extensions. |
| 147 std::set<std::string> disabled_extension_ids_; | 153 std::set<std::string> disabled_extension_ids_; |
| 148 | 154 |
| 149 // On-memory data for the availability of system_component. | 155 // On-memory data for the availability of system_component. |
| 150 std::set<std::string> disabled_system_component_ids_; | 156 std::set<std::string> disabled_system_component_ids_; |
| 151 | 157 |
| 152 // An observer to listen when extension is uninstalled. | 158 // An observer to listen when extension is uninstalled. |
| 153 ScopedObserver<extensions::ExtensionRegistry, | 159 ScopedObserver<extensions::ExtensionRegistry, |
| 154 extensions::ExtensionRegistryObserver> | 160 extensions::ExtensionRegistryObserver> |
| 155 extension_registry_observer_; | 161 extension_registry_observer_; |
| 156 | 162 |
| 157 // Welcome Notification | 163 // Welcome Notification |
| 158 scoped_ptr<ExtensionWelcomeNotification> chrome_now_welcome_notification_; | 164 scoped_ptr<ExtensionWelcomeNotification> chrome_now_welcome_notification_; |
| 159 | 165 |
| 160 base::WeakPtrFactory<DesktopNotificationService> weak_factory_; | 166 base::WeakPtrFactory<DesktopNotificationService> weak_factory_; |
| 161 | 167 |
| 162 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); | 168 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); |
| 163 }; | 169 }; |
| 164 | 170 |
| 165 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ | 171 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ |
| OLD | NEW |