OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_ | |
6 #define GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_ | |
7 | |
8 #include <map> | |
9 #include <string> | |
10 #include <vector> | |
11 | |
12 #include "base/basictypes.h" | |
13 #include "google_apis/gcm/base/gcm_export.h" | |
14 | |
15 namespace gcm { | |
16 | |
17 struct GCM_EXPORT RegistrationInfo { | |
18 RegistrationInfo(); | |
19 ~RegistrationInfo(); | |
20 | |
21 std::string SerializeAsString() const; | |
22 bool ParseFromString(const std::string& value); | |
23 | |
24 std::vector<std::string> sender_ids; | |
25 std::string registration_id; | |
26 }; | |
27 | |
28 // Map of app id to registration info. | |
29 typedef std::map<std::string, RegistrationInfo> RegistrationInfoMap; | |
Nicolas Zea
2014/03/21 19:52:40
Not a huge deal, but this is going to be fairly in
| |
30 | |
31 } // namespace gcm | |
32 | |
33 #endif // GOOGLE_APIS_GCM_ENGINE_REGISTRATION_INFO_H_ | |
OLD | NEW |