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

Unified Diff: chrome/browser/services/gcm/push_messaging_service_impl.h

Issue 343743004: Implement a permission check for push. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add content settings html sections Created 6 years, 6 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: chrome/browser/services/gcm/push_messaging_service_impl.h
diff --git a/chrome/browser/services/gcm/push_messaging_service_impl.h b/chrome/browser/services/gcm/push_messaging_service_impl.h
index aea8a08edf8321f1cd0a9d2d449892652b891164..4a049fb3a41685db30260a4db64434945ff8ef55 100644
--- a/chrome/browser/services/gcm/push_messaging_service_impl.h
+++ b/chrome/browser/services/gcm/push_messaging_service_impl.h
@@ -48,6 +48,8 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
virtual void Register(
const std::string& app_id,
const std::string& sender_id,
+ int renderer_id,
+ int router_id,
const content::PushMessagingService::RegisterCallback& callback) OVERRIDE;
private:
@@ -57,6 +59,12 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
const std::string& registration_id,
GCMClient::Result result);
+ void DidRequestPermission(
+ const std::string& sender_id,
+ const std::string& app_id,
+ const content::PushMessagingService::RegisterCallback& callback,
+ bool allow);
+
GCMProfileService* gcm_profile_service_; // It owns us.
Profile* profile_; // It owns our owner.

Powered by Google App Engine
This is Rietveld 408576698