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

Unified Diff: content/public/browser/push_messaging_service.h

Issue 661463002: Implement PushManager#hasPermission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/public/browser/push_messaging_service.h
diff --git a/content/public/browser/push_messaging_service.h b/content/public/browser/push_messaging_service.h
index 5154febd053765aabd1994dffcd0c4503feec144..8f8da12b3e551d36d4d4d78c82dbaf5a348167ca 100644
--- a/content/public/browser/push_messaging_service.h
+++ b/content/public/browser/push_messaging_service.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "content/common/content_export.h"
#include "content/public/common/push_messaging_status.h"
+#include "third_party/WebKit/public/platform/WebPushPermissionStatus.h"
#include "url/gurl.h"
namespace content {
@@ -31,6 +32,10 @@ class CONTENT_EXPORT PushMessagingService {
int render_frame_id,
bool user_gesture,
const RegisterCallback& callback) = 0;
+ virtual blink::WebPushPermissionStatus GetPermissionStatus(
jam 2014/10/29 20:08:58 nit: document everything in this interface
Miguel Garcia 2014/10/30 12:27:15 Done.
+ const GURL& requesting_origin,
+ int renderer_id,
+ int render_frame_id) = 0;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698