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

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: 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 cab1b5ce82ffdcf60df458f8672c87e72b82f697..d20a7db73cd7cad3bc9b2dbdeeaf0cbb8a313154 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;
@@ -36,6 +37,10 @@ class PushMessagingMessageFilter : public BrowserMessageFilter {
bool user_gesture,
int service_worker_provider_id);
+ void OnPermissionStatus(int render_frame_id,
mlamouri (slow - plz ping) 2014/10/29 20:13:33 nit: this name sounds quite confusing to me. Could
Miguel Garcia 2014/10/30 12:27:15 Sure, it did not strike me as confusing but here i
+ int service_worker_provider_id,
+ int permission_callback_id);
+
void DoRegister(int render_frame_id,
int callbacks_id,
const std::string& sender_id,
@@ -49,6 +54,10 @@ class PushMessagingMessageFilter : public BrowserMessageFilter {
const std::string& push_registration_id,
PushRegistrationStatus status);
+ void DoPermissionStatus(const GURL& requesting_origin,
mlamouri (slow - plz ping) 2014/10/29 20:13:33 nit: I think |DidGetPermissionStatus| would be a c
Miguel Garcia 2014/10/30 12:27:15 It is not really DidGet since by the time we call
+ int render_frame_id,
+ int callback_id);
+
PushMessagingService* service();
int render_process_id_;

Powered by Google App Engine
This is Rietveld 408576698