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

Unified Diff: content/browser/push_messaging_message_filter.h

Issue 661463002: Implement PushManager#hasPermission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Support all three possible states of the permission 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/browser/push_messaging_message_filter.h
diff --git a/content/browser/push_messaging_message_filter.h b/content/browser/push_messaging_message_filter.h
index 9aa1f4f26a8899959e4c4154f08d3e36e1f77338..f4f719a9f32658475c2cb2f9a7c43abe0ab14a90 100644
--- a/content/browser/push_messaging_message_filter.h
+++ b/content/browser/push_messaging_message_filter.h
@@ -13,6 +13,7 @@
#include "content/public/common/push_messaging_status.h"
#include "url/gurl.h"
+class GURL;
namespace content {
class PushMessagingService;
@@ -35,6 +36,8 @@ class PushMessagingMessageFilter : public BrowserMessageFilter {
const std::string& sender_id,
bool user_gesture,
int service_worker_provider_id);
+ void OnPermissionStatus(int render_frame_id, int service_worker_provider_id,
+ int permission_callback_id);
void DoRegister(int render_frame_id,
int callbacks_id,
@@ -49,6 +52,9 @@ class PushMessagingMessageFilter : public BrowserMessageFilter {
const std::string& push_registration_id,
PushMessagingStatus status);
+ void DoPermissionStatus(const GURL& requesting_origin, int render_frame_id,
+ int callback_id);
+
PushMessagingService* service();
int render_process_id_;

Powered by Google App Engine
This is Rietveld 408576698