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

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: rebase 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
« no previous file with comments | « no previous file | chrome/browser/services/gcm/push_messaging_application_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e9da2ca9077056aacb6e9b33bfcf3ddcc46119d9..ddb24d64dbbea8a648c49fdaeba152785e0f3bf7 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.
@@ -70,9 +75,9 @@ class PushMessagingApplicationId {
const GURL& origin,
int64 service_worker_registration_id);
- const std::string app_id_guid_;
- const GURL origin_;
- const int64 service_worker_registration_id_;
+ std::string app_id_guid_;
+ GURL origin_;
+ int64 service_worker_registration_id_;
};
} // namespace gcm
« no previous file with comments | « no previous file | chrome/browser/services/gcm/push_messaging_application_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698