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

Side by Side Diff: components/sync/api/metadata_batch.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
« no previous file with comments | « components/sync/api/fake_syncable_service.cc ('k') | components/sync/api/metadata_batch.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_API_METADATA_BATCH_H_ 5 #ifndef COMPONENTS_SYNC_API_METADATA_BATCH_H_
6 #define SYNC_API_METADATA_BATCH_H_ 6 #define COMPONENTS_SYNC_API_METADATA_BATCH_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "sync/base/sync_export.h" 11 #include "components/sync/base/sync_export.h"
12 #include "sync/protocol/data_type_state.pb.h" 12 #include "components/sync/protocol/data_type_state.pb.h"
13 #include "sync/protocol/entity_metadata.pb.h" 13 #include "components/sync/protocol/entity_metadata.pb.h"
14 14
15 namespace syncer_v2 { 15 namespace syncer_v2 {
16 16
17 // Map of client tag to EntityMetadata proto. 17 // Map of client tag to EntityMetadata proto.
18 typedef std::map<std::string, sync_pb::EntityMetadata> EntityMetadataMap; 18 typedef std::map<std::string, sync_pb::EntityMetadata> EntityMetadataMap;
19 19
20 // Container used to pass sync metadata from services to their processor. 20 // Container used to pass sync metadata from services to their processor.
21 class SYNC_EXPORT MetadataBatch { 21 class SYNC_EXPORT MetadataBatch {
22 public: 22 public:
23 MetadataBatch(); 23 MetadataBatch();
(...skipping 14 matching lines...) Expand all
38 // Set the DataTypeState for this batch. 38 // Set the DataTypeState for this batch.
39 void SetDataTypeState(const sync_pb::DataTypeState& state); 39 void SetDataTypeState(const sync_pb::DataTypeState& state);
40 40
41 private: 41 private:
42 EntityMetadataMap metadata_map_; 42 EntityMetadataMap metadata_map_;
43 sync_pb::DataTypeState state_; 43 sync_pb::DataTypeState state_;
44 }; 44 };
45 45
46 } // namespace syncer_v2 46 } // namespace syncer_v2
47 47
48 #endif // SYNC_API_METADATA_BATCH_H_ 48 #endif // COMPONENTS_SYNC_API_METADATA_BATCH_H_
OLDNEW
« no previous file with comments | « components/sync/api/fake_syncable_service.cc ('k') | components/sync/api/metadata_batch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698