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

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

Issue 148293002: [GCM] Add basic collapse key support for upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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
Index: google_apis/gcm/engine/mcs_client.h
diff --git a/google_apis/gcm/engine/mcs_client.h b/google_apis/gcm/engine/mcs_client.h
index 340f9c1aa14c957f1373765f5e18fd28d6a767a8..3cd00425f83e0e28ad8ccf5345cb5eeb6df69ea9 100644
--- a/google_apis/gcm/engine/mcs_client.h
+++ b/google_apis/gcm/engine/mcs_client.h
@@ -36,6 +36,7 @@ class LoginRequest;
namespace gcm {
class ConnectionFactory;
+class CollapseKey;
jianli 2014/02/04 22:55:14 nit: sort
Nicolas Zea 2014/02/12 23:35:46 Done.
struct ReliablePacketInfo;
// An MCS client. This client is in charge of all communications with an
@@ -218,6 +219,9 @@ class GCM_EXPORT MCSClient {
std::deque<MCSPacketInternal> to_send_;
std::deque<MCSPacketInternal> to_resend_;
+ // Map of collapse keys to their pending messages.
+ std::map<CollapseKey, ReliablePacketInfo*> collapse_key_map_;
jianli 2014/02/04 22:55:14 It seems that the value "ReliablePacketInfo*" is o
Nicolas Zea 2014/02/12 23:35:46 Good catch. Note that to_resend_ will never share
+
// Last device_to_server stream id acknowledged by the server.
StreamId last_device_to_server_stream_id_received_;
// Last server_to_device stream id acknowledged by this device.

Powered by Google App Engine
This is Rietveld 408576698