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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 75 matching lines...) Loading... | |
86 // Creates a data:xxxx URL which contains the full HTML for a notification | 86 // Creates a data:xxxx URL which contains the full HTML for a notification |
87 // using resource template which contains the standard formatting for | 87 // using resource template which contains the standard formatting for |
88 // notifications. | 88 // notifications. |
89 static string16 CreateDataUrl(int resource, | 89 static string16 CreateDataUrl(int resource, |
90 const std::vector<std::string>& subst); | 90 const std::vector<std::string>& subst); |
91 | 91 |
92 // The default content setting determines how to handle origins that haven't | 92 // The default content setting determines how to handle origins that haven't |
93 // been allowed or denied yet. | 93 // been allowed or denied yet. |
94 ContentSetting GetDefaultContentSetting(); | 94 ContentSetting GetDefaultContentSetting(); |
95 void SetDefaultContentSetting(ContentSetting setting); | 95 void SetDefaultContentSetting(ContentSetting setting); |
96 bool IsDefaultContentSettingManaged(); | |
jochen (gone - plz use gerrit)
2010/11/30 15:32:49
can this be const?
markusheintz_
2010/11/30 15:45:43
Absolutely.
| |
96 | 97 |
97 // NOTE: This should only be called on the UI thread. | 98 // NOTE: This should only be called on the UI thread. |
98 void ResetToDefaultContentSetting(); | 99 void ResetToDefaultContentSetting(); |
99 | 100 |
100 // Returns all origins that explicitly have been allowed. | 101 // Returns all origins that explicitly have been allowed. |
101 std::vector<GURL> GetAllowedOrigins(); | 102 std::vector<GURL> GetAllowedOrigins(); |
102 | 103 |
103 // Returns all origins that explicitly have been denied. | 104 // Returns all origins that explicitly have been denied. |
104 std::vector<GURL> GetBlockedOrigins(); | 105 std::vector<GURL> GetBlockedOrigins(); |
105 | 106 |
(...skipping 42 matching lines...) Loading... | |
148 // UI for desktop toasts. | 149 // UI for desktop toasts. |
149 NotificationUIManager* ui_manager_; | 150 NotificationUIManager* ui_manager_; |
150 | 151 |
151 PrefChangeRegistrar prefs_registrar_; | 152 PrefChangeRegistrar prefs_registrar_; |
152 NotificationRegistrar notification_registrar_; | 153 NotificationRegistrar notification_registrar_; |
153 | 154 |
154 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); | 155 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); |
155 }; | 156 }; |
156 | 157 |
157 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ | 158 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ |
OLD | NEW |