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
3 // found in the LICENSE file.
5 #ifndef GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_
6 #define GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_
12 #include "base/basictypes.h"
13 #include "base/memory/linked_ptr.h"
14 #include "google_apis/gcm/base/gcm_export.h"
18 struct GCM_EXPORT RegistrationInfo
{
22 std::string
SerializeAsString() const;
23 bool ParseFromString(const std::string
& value
);
25 std::vector
<std::string
> sender_ids
;
26 std::string registration_id
;
29 // Map of app id to registration info.
30 typedef std::map
<std::string
, linked_ptr
<RegistrationInfo
> >
35 #endif // GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_