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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // extensions::ExtensionRegistryObserver: | 87 // extensions::ExtensionRegistryObserver: |
88 void OnExtensionUninstalled(content::BrowserContext* browser_context, | 88 void OnExtensionUninstalled(content::BrowserContext* browser_context, |
89 const extensions::Extension* extension, | 89 const extensions::Extension* extension, |
90 extensions::UninstallReason reason) override; | 90 extensions::UninstallReason reason) override; |
91 #endif | 91 #endif |
92 | 92 |
93 // PermissionContextBase: | 93 // PermissionContextBase: |
94 void UpdateContentSetting(const GURL& requesting_origin, | 94 void UpdateContentSetting(const GURL& requesting_origin, |
95 const GURL& embedder_origin, | 95 const GURL& embedder_origin, |
96 ContentSetting content_setting) override; | 96 ContentSetting content_setting) override; |
| 97 bool IsRestrictedToSecureOrigins() const override; |
97 | 98 |
98 // The profile which owns this object. | 99 // The profile which owns this object. |
99 Profile* profile_; | 100 Profile* profile_; |
100 | 101 |
101 // Prefs listener for disabled_extension_id. | 102 // Prefs listener for disabled_extension_id. |
102 StringListPrefMember disabled_extension_id_pref_; | 103 StringListPrefMember disabled_extension_id_pref_; |
103 | 104 |
104 // Prefs listener for disabled_system_component_id. | 105 // Prefs listener for disabled_system_component_id. |
105 StringListPrefMember disabled_system_component_id_pref_; | 106 StringListPrefMember disabled_system_component_id_pref_; |
106 | 107 |
107 // On-memory data for the availability of extensions. | 108 // On-memory data for the availability of extensions. |
108 std::set<std::string> disabled_extension_ids_; | 109 std::set<std::string> disabled_extension_ids_; |
109 | 110 |
110 // On-memory data for the availability of system_component. | 111 // On-memory data for the availability of system_component. |
111 std::set<std::string> disabled_system_component_ids_; | 112 std::set<std::string> disabled_system_component_ids_; |
112 | 113 |
113 #if defined(ENABLE_EXTENSIONS) | 114 #if defined(ENABLE_EXTENSIONS) |
114 // An observer to listen when extension is uninstalled. | 115 // An observer to listen when extension is uninstalled. |
115 ScopedObserver<extensions::ExtensionRegistry, | 116 ScopedObserver<extensions::ExtensionRegistry, |
116 extensions::ExtensionRegistryObserver> | 117 extensions::ExtensionRegistryObserver> |
117 extension_registry_observer_; | 118 extension_registry_observer_; |
118 #endif | 119 #endif |
119 | 120 |
120 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); | 121 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); |
121 }; | 122 }; |
122 | 123 |
123 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ | 124 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ |
OLD | NEW |