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

Unified Diff: public/platform/WebPushClient.h

Issue 658723003: Blink implementation of PushManager#hasPermission() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Layout test Created 6 years, 2 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
« no previous file with comments | « public/platform/WebCallbacks.h ('k') | public/platform/WebPushPermissionStatus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebPushClient.h
diff --git a/public/platform/WebPushClient.h b/public/platform/WebPushClient.h
index 7189fcd363fb8834088cdc27c4ad2be06e71c884..71be9dc8b59f66d4d8c177534219e048355c5cd5 100644
--- a/public/platform/WebPushClient.h
+++ b/public/platform/WebPushClient.h
@@ -7,6 +7,7 @@
#include "public/platform/WebCallbacks.h"
#include "public/platform/WebPushError.h"
+#include "public/platform/WebPushPermissionStatus.h"
namespace blink {
@@ -14,6 +15,7 @@ class WebServiceWorkerProvider;
struct WebPushRegistration;
typedef WebCallbacks<WebPushRegistration, WebPushError> WebPushRegistrationCallbacks;
+typedef WebCallbacks<WebPushPermissionStatus, void> WebPushPermissionCallback;
class WebPushClient {
public:
@@ -22,6 +24,10 @@ public:
// Ownership of the WebPushRegistrationCallbacks is transferred to the
// client. Ownership of the WebServiceWorkerProvider is not transferred.
virtual void registerPushMessaging(WebPushRegistrationCallbacks*, WebServiceWorkerProvider*) { }
+
+ // Ownership of the WebPushPermissionCallback is transferred to the
+ // client. Ownership of the WebServiceWorkerProvider is not transferred.
+ virtual void getPermissionStatus(WebPushPermissionCallback*, WebServiceWorkerProvider*) { }
};
} // namespace blink
« no previous file with comments | « public/platform/WebCallbacks.h ('k') | public/platform/WebPushPermissionStatus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698