Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: sync/notifier/object_id_payload_map.h

Issue 10828158: [Sync] Address msw's comments for r149747 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/test/fake_sync_manager.cc ('k') | sync/notifier/object_id_payload_map.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 SYNC_NOTIFIER_OBJECT_ID_PAYLOAD_MAP_H_ 5 #ifndef SYNC_NOTIFIER_OBJECT_ID_PAYLOAD_MAP_H_
6 #define SYNC_NOTIFIER_OBJECT_ID_PAYLOAD_MAP_H_ 6 #define SYNC_NOTIFIER_OBJECT_ID_PAYLOAD_MAP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "google/cacheinvalidation/include/types.h" 11 #include "google/cacheinvalidation/include/types.h"
12 #include "sync/internal_api/public/base/model_type_payload_map.h" 12 #include "sync/internal_api/public/base/model_type_payload_map.h"
13 #include "sync/notifier/invalidation_util.h" 13 #include "sync/notifier/invalidation_util.h"
14 14
15 namespace syncer { 15 namespace syncer {
16 16
17 typedef std::map<invalidation::ObjectId, 17 typedef std::map<invalidation::ObjectId,
18 std::string, 18 std::string,
19 ObjectIdLessThan> ObjectIdPayloadMap; 19 ObjectIdLessThan> ObjectIdPayloadMap;
20 20
21 // Converts between ObjectIdPayloadMaps and ObjectIdSets. 21 // Converts between ObjectIdPayloadMaps and ObjectIdSets.
22 ObjectIdSet ObjectIdPayloadMapToSet(const ObjectIdPayloadMap& id_payloads); 22 ObjectIdSet ObjectIdPayloadMapToSet(const ObjectIdPayloadMap& id_payloads);
23 ObjectIdPayloadMap ObjectIdSetToPayloadMap( 23 ObjectIdPayloadMap ObjectIdSetToPayloadMap(ObjectIdSet ids,
24 ObjectIdSet ids, const std::string& payload); 24 const std::string& payload);
25 25
26 // Converts between ObjectIdPayloadMaps and ModelTypePayloadMaps. 26 // Converts between ObjectIdPayloadMaps and ModelTypePayloadMaps.
27 ModelTypePayloadMap ObjectIdPayloadMapToModelTypePayloadMap( 27 ModelTypePayloadMap ObjectIdPayloadMapToModelTypePayloadMap(
28 const ObjectIdPayloadMap& id_payloads); 28 const ObjectIdPayloadMap& id_payloads);
29 ObjectIdPayloadMap ModelTypePayloadMapToObjectIdPayloadMap( 29 ObjectIdPayloadMap ModelTypePayloadMapToObjectIdPayloadMap(
30 const ModelTypePayloadMap& type_payloads); 30 const ModelTypePayloadMap& type_payloads);
31 31
32 } // namespace syncer 32 } // namespace syncer
33 33
34 #endif // HOME_DCHENG_SRC_CHROMIUM_SRC_SYNC_NOTIFIER_OBJECT_ID_PAYLOAD_MAP_H_ 34 #endif // HOME_DCHENG_SRC_CHROMIUM_SRC_SYNC_NOTIFIER_OBJECT_ID_PAYLOAD_MAP_H_
OLDNEW
« no previous file with comments | « sync/internal_api/test/fake_sync_manager.cc ('k') | sync/notifier/object_id_payload_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698