OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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 SYNC_NOTIFIER_OBJECT_ID_STATE_MAP_H_ | |
6 #define SYNC_NOTIFIER_OBJECT_ID_STATE_MAP_H_ | |
7 | |
8 #include <map> | |
9 #include <string> | |
10 | |
11 #include "google/cacheinvalidation/include/types.h" | |
12 #include "sync/internal_api/public/base/model_type_state_map.h" | |
13 #include "sync/notifier/invalidation_util.h" | |
14 | |
15 namespace syncer { | |
16 | |
17 typedef std::map<invalidation::ObjectId, | |
18 InvalidationState, | |
akalin
2012/08/22 23:24:27
doesn't InvalidationState need to be forward-decla
dcheng
2012/08/22 23:47:11
See previous comment for why it's not forward-decl
| |
19 ObjectIdLessThan> ObjectIdStateMap; | |
20 | |
21 // Converts between ObjectIdStateMaps and ObjectIdSets. | |
22 ObjectIdSet ObjectIdStateMapToSet(const ObjectIdStateMap& id_payloads); | |
23 ObjectIdStateMap ObjectIdSetToStateMap(const ObjectIdSet& ids, | |
24 const std::string& payload); | |
25 | |
26 // Converts between ObjectIdStateMaps and ModelTypeStateMaps. | |
27 ModelTypeStateMap ObjectIdStateMapToModelTypeStateMap( | |
28 const ObjectIdStateMap& id_payloads); | |
29 ObjectIdStateMap ModelTypeStateMapToObjectIdStateMap( | |
30 const ModelTypeStateMap& type_payloads); | |
31 | |
32 } // namespace syncer | |
33 | |
34 #endif // HOME_DCHENG_SRC_CHROMIUM_SRC_SYNC_NOTIFIER_OBJECT_ID_STATE_MAP_H_ | |
OLD | NEW |