Index: chrome/browser/notifications/desktop_notification_service.h |
diff --git a/chrome/browser/notifications/desktop_notification_service.h b/chrome/browser/notifications/desktop_notification_service.h |
index 50f28f5f5c7ca8d5a043d03b2920a1b2c0c13397..ae2738d04f2b28ca0e7915c512be7389b752e102 100644 |
--- a/chrome/browser/notifications/desktop_notification_service.h |
+++ b/chrome/browser/notifications/desktop_notification_service.h |
@@ -23,7 +23,9 @@ |
#include "googleurl/src/gurl.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
+class Extension; |
class Notification; |
+class NotificationDelegate; |
class NotificationUIManager; |
class NotificationsPrefsCache; |
class PrefService; |
@@ -124,6 +126,11 @@ class DesktopNotificationService : public NotificationObserver, |
ContentSetting GetContentSetting(const GURL& origin); |
+ // Checks to see if a given origin has permission to create desktop |
+ // notifications. Returns a constant from WebNotificationPresenter |
+ // class. |
+ int HasPermission(const GURL& origin); |
+ |
private: |
void InitPrefs(); |
void StartObserving(); |