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

Unified Diff: third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h

Issue 1995663003: Revert of Introduce the Blink NotificationService, move permission checks there (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h
diff --git a/third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h b/third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h
index 2f815b3b6f3f671e3be3cebce74d6f6c6483a5b3..08cd6767c7509d084e97c0b281abce7ecba07923 100644
--- a/third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h
+++ b/third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h
@@ -14,6 +14,12 @@
#include <stdint.h>
namespace blink {
+
+namespace mojom {
+namespace blink {
+enum class PermissionStatus;
+}
+}
class WebNotificationDelegate;
class WebSecurityOrigin;
@@ -56,6 +62,9 @@
// Indicates that the delegate object is being destroyed, and must no longer
// be used by the embedder to dispatch events.
virtual void notifyDelegateDestroyed(WebNotificationDelegate*) = 0;
+
+ // Synchronously checks the permission level for the given origin.
+ virtual mojom::blink::PermissionStatus checkPermission(const WebSecurityOrigin&) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698