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

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

Issue 135303002: Adding a user list (to be consumed by GCM Client Implementation) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Win64 compilation issue and adding comments to test Created 6 years, 11 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 | google_apis/gcm/engine/gcm_store.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.h
diff --git a/google_apis/gcm/engine/gcm_store.h b/google_apis/gcm/engine/gcm_store.h
index 06189a93b10ee9a390506c7ca5b970dbc51290cc..d26ca18ec46c96f8bafa74c20a539e239d8e20b4 100644
--- a/google_apis/gcm/engine/gcm_store.h
+++ b/google_apis/gcm/engine/gcm_store.h
@@ -28,6 +28,15 @@ class MCSMessage;
// as well as store device and user checkin information.
class GCM_EXPORT GCMStore {
public:
+ // Part of load results storing user serial number mapping related values.
+ struct GCM_EXPORT SerialNumberMappings {
+ SerialNumberMappings();
+ ~SerialNumberMappings();
+
+ int64 next_serial_number;
+ std::map<std::string, int64> user_serial_numbers;
+ };
+
// Container for Load(..) results.
struct GCM_EXPORT LoadResult {
LoadResult();
@@ -38,8 +47,7 @@ class GCM_EXPORT GCMStore {
uint64 device_security_token;
std::vector<std::string> incoming_messages;
std::map<std::string, google::protobuf::MessageLite*> outgoing_messages;
- int64 next_serial_number;
- std::map<std::string, int64> user_serial_numbers;
+ SerialNumberMappings serial_number_mappings;
};
typedef std::vector<std::string> PersistentIdList;
« no previous file with comments | « no previous file | google_apis/gcm/engine/gcm_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698