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

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

Issue 930083002: Unregister with push service and SW database when permission is lost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready Created 5 years, 10 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_application_id.h
diff --git a/chrome/browser/services/gcm/push_messaging_application_id.h b/chrome/browser/services/gcm/push_messaging_application_id.h
index 54f14807f2ce9650a0f4785128a9157ca985584e..e4137a68c3b0bef952dbe4a38b4b47efce6d3aa8 100644
--- a/chrome/browser/services/gcm/push_messaging_application_id.h
+++ b/chrome/browser/services/gcm/push_messaging_application_id.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_APPLICATION_ID_H_
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "url/gurl.h"
@@ -44,6 +45,10 @@ class PushMessagingApplicationId {
const GURL& origin,
int64 service_worker_registration_id);
+ // Returns all the PushMessagingApplicationId currently registered for the
+ // given |profile|.
+ static std::vector<PushMessagingApplicationId> GetAll(Profile* profile);
+
~PushMessagingApplicationId();
// Persist this application id to disk.

Powered by Google App Engine
This is Rietveld 408576698