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

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

Issue 7125006: Get rid of Chrome notifications dependency, and instead go through ContentBrowserClient to show U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browsertest 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
===================================================================
--- chrome/browser/notifications/desktop_notification_service.h (revision 88079)
+++ chrome/browser/notifications/desktop_notification_service.h (working copy)
@@ -21,6 +21,7 @@
#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
#include "googleurl/src/gurl.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresenter.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
class Extension;
@@ -127,9 +128,9 @@
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);
+ // notifications.
+ WebKit::WebNotificationPresenter::Permission
+ HasPermission(const GURL& origin);
private:
void InitPrefs();

Powered by Google App Engine
This is Rietveld 408576698