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

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: Sync 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
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..fcc6c311b22e0ce48efa949e23b58d5acc87c48c 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 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;

Powered by Google App Engine
This is Rietveld 408576698