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

Unified Diff: google_apis/gcm/engine/gcm_store_impl.h

Issue 207443002: [GCM] Move registration info persistence from extension state store to GCM store (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 6 years, 9 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 | « google_apis/gcm/engine/gcm_store.cc ('k') | google_apis/gcm/engine/gcm_store_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/engine/gcm_store_impl.h
diff --git a/google_apis/gcm/engine/gcm_store_impl.h b/google_apis/gcm/engine/gcm_store_impl.h
index 88ed164c7da74666dbe68be0d347b19d1cfd0857..971367a8bf01960fad72894a6f4dc453a99f0c0c 100644
--- a/google_apis/gcm/engine/gcm_store_impl.h
+++ b/google_apis/gcm/engine/gcm_store_impl.h
@@ -46,6 +46,13 @@ class GCM_EXPORT GCMStoreImpl : public GCMStore {
uint64 device_security_token,
const UpdateCallback& callback) OVERRIDE;
+ // Registration info.
+ virtual void AddRegistration(const std::string& app_id,
+ const linked_ptr<RegistrationInfo>& registration,
+ const UpdateCallback& callback) OVERRIDE;
+ virtual void RemoveRegistration(const std::string& app_id,
+ const UpdateCallback& callback) OVERRIDE;
+
// Unacknowledged incoming message handling.
virtual void AddIncomingMessage(const std::string& persistent_id,
const UpdateCallback& callback) OVERRIDE;
@@ -67,15 +74,6 @@ class GCM_EXPORT GCMStoreImpl : public GCMStore {
virtual void RemoveOutgoingMessages(const PersistentIdList& persistent_ids,
const UpdateCallback& callback) OVERRIDE;
- // User serial number handling.
- virtual void SetNextSerialNumber(int64 next_serial_number,
- const UpdateCallback& callback) OVERRIDE;
- virtual void AddUserSerialNumber(const std::string& username,
- int64 serial_number,
- const UpdateCallback& callback) OVERRIDE;
- virtual void RemoveUserSerialNumber(const std::string& username,
- const UpdateCallback& callback) OVERRIDE;
-
private:
typedef std::map<std::string, int> AppIdToMessageCountMap;
« no previous file with comments | « google_apis/gcm/engine/gcm_store.cc ('k') | google_apis/gcm/engine/gcm_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698