Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1156)

Unified Diff: chrome/browser/notifications/desktop_notification_service.h

Issue 7053041: Add a Create method to DesktopNotificationHandler and stubs for the notification objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698