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

Side by Side Diff: google_apis/gcm/engine/gcm_store.h

Issue 148293002: [GCM] Add basic collapse key support for upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_ 5 #ifndef GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_
6 #define GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_ 6 #define GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual void RemoveIncomingMessages(const PersistentIdList& persistent_ids, 84 virtual void RemoveIncomingMessages(const PersistentIdList& persistent_ids,
85 const UpdateCallback& callback) = 0; 85 const UpdateCallback& callback) = 0;
86 86
87 // Unacknowledged outgoing messages handling. 87 // Unacknowledged outgoing messages handling.
88 // Returns false if app has surpassed message limits, else returns true. Note 88 // Returns false if app has surpassed message limits, else returns true. Note
89 // that the message isn't persisted until |callback| is invoked with 89 // that the message isn't persisted until |callback| is invoked with
90 // |success| == true. 90 // |success| == true.
91 virtual bool AddOutgoingMessage(const std::string& persistent_id, 91 virtual bool AddOutgoingMessage(const std::string& persistent_id,
92 const MCSMessage& message, 92 const MCSMessage& message,
93 const UpdateCallback& callback) = 0; 93 const UpdateCallback& callback) = 0;
94 virtual void OverwriteOutgoingMessage(const std::string& persistent_id,
95 const MCSMessage& message,
96 const UpdateCallback& callback) = 0;
94 virtual void RemoveOutgoingMessage(const std::string& persistent_id, 97 virtual void RemoveOutgoingMessage(const std::string& persistent_id,
95 const UpdateCallback& callback) = 0; 98 const UpdateCallback& callback) = 0;
96 virtual void RemoveOutgoingMessages(const PersistentIdList& persistent_ids, 99 virtual void RemoveOutgoingMessages(const PersistentIdList& persistent_ids,
97 const UpdateCallback& callback) = 0; 100 const UpdateCallback& callback) = 0;
98 101
99 // User serial number handling. 102 // User serial number handling.
100 virtual void SetNextSerialNumber(int64 next_serial_number, 103 virtual void SetNextSerialNumber(int64 next_serial_number,
101 const UpdateCallback& callback) = 0; 104 const UpdateCallback& callback) = 0;
102 virtual void AddUserSerialNumber(const std::string& username, 105 virtual void AddUserSerialNumber(const std::string& username,
103 int64 serial_number, 106 int64 serial_number,
104 const UpdateCallback& callback) = 0; 107 const UpdateCallback& callback) = 0;
105 virtual void RemoveUserSerialNumber(const std::string& username, 108 virtual void RemoveUserSerialNumber(const std::string& username,
106 const UpdateCallback& callback) = 0; 109 const UpdateCallback& callback) = 0;
107 110
108 private: 111 private:
109 DISALLOW_COPY_AND_ASSIGN(GCMStore); 112 DISALLOW_COPY_AND_ASSIGN(GCMStore);
110 }; 113 };
111 114
112 } // namespace gcm 115 } // namespace gcm
113 116
114 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_ 117 #endif // GOOGLE_APIS_GCM_ENGINE_GCM_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | google_apis/gcm/engine/gcm_store_impl.h » ('j') | google_apis/gcm/engine/gcm_store_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698