1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_
6 #define COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_
11 #include "components/gcm_driver/common/gcm_driver_export.h"
15 // Message data consisting of key-value pairs.
16 typedef std::map
<std::string
, std::string
> MessageData
;
18 // Message to be delivered to the other party.
19 struct GCM_DRIVER_EXPORT OutgoingMessage
{
29 static const int kMaximumTTL
;
32 // Message being received from the other party.
33 struct GCM_DRIVER_EXPORT IncomingMessage
{
38 std::string collapse_key
;
39 std::string sender_id
;
45 #endif // COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_