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

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..fb820df3373d99c0dd26c1697e88db1fbd028b1f 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,
Michael van Ouwerkerk 2014/10/24 12:36:08 nit: add a newline before this to remain consisten
Miguel Garcia 2014/10/29 18:32:03 Done.
+ 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,
PushRegistrationStatus 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