OLD | NEW |
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_ACCOUNT_MAPPING_H_ | 5 #ifndef GOOGLE_APIS_GCM_ENGINE_ACCOUNT_MAPPING_H_ |
6 #define GOOGLE_APIS_GCM_ENGINE_ACCOUNT_MAPPING_H_ | 6 #define GOOGLE_APIS_GCM_ENGINE_ACCOUNT_MAPPING_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/time/time.h" | 10 #include "base/time/time.h" |
12 #include "google_apis/gcm/base/gcm_export.h" | 11 #include "google_apis/gcm/base/gcm_export.h" |
13 | 12 |
14 namespace gcm { | 13 namespace gcm { |
15 | 14 |
16 // Stores information about Account mapping and a last message sent regarding | 15 // Stores information about Account mapping and a last message sent regarding |
17 // that mapping. | 16 // that mapping. |
18 struct GCM_EXPORT AccountMapping { | 17 struct GCM_EXPORT AccountMapping { |
19 // Status of the account mapping. | 18 // Status of the account mapping. |
20 enum MappingStatus { | 19 enum MappingStatus { |
(...skipping 26 matching lines...) Expand all Loading... |
47 MappingStatus status; | 46 MappingStatus status; |
48 // Time of the mapping status change. | 47 // Time of the mapping status change. |
49 base::Time status_change_timestamp; | 48 base::Time status_change_timestamp; |
50 // ID of the last mapping message sent to GCM. | 49 // ID of the last mapping message sent to GCM. |
51 std::string last_message_id; | 50 std::string last_message_id; |
52 }; | 51 }; |
53 | 52 |
54 } // namespace gcm | 53 } // namespace gcm |
55 | 54 |
56 #endif // GOOGLE_APIS_GCM_ENGINE_ACCOUNT_MAPPING_H_ | 55 #endif // GOOGLE_APIS_GCM_ENGINE_ACCOUNT_MAPPING_H_ |
OLD | NEW |