| 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..7a9749f6acb48d2ffeae81fc87082767131131db 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,20 @@ class DesktopNotificationService : public NotificationObserver,
|
|
|
| ContentSetting GetContentSetting(const GURL& origin);
|
|
|
| + // Creates a notification balloon for the given origin & content and adds it
|
| + // to the notification ui manager for display.
|
| + static void ShowBalloon(GURL origin_url,
|
| + GURL icon_url,
|
| + const string16& title,
|
| + const string16& message,
|
| + NotificationDelegate* delegate,
|
| + Profile* profile);
|
| +
|
| + // Checks to see if a given origin has permission to create desktop
|
| + // notifications. Returns a constant from WebNotificationPresenter
|
| + // class.
|
| + static int HasPermission(Profile* profile, const GURL& origin);
|
| +
|
| private:
|
| void InitPrefs();
|
| void StartObserving();
|
|
|