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

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

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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
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 COMPONENTS_SYNC_API_METADATA_BATCH_H_ 5 #ifndef COMPONENTS_SYNC_API_METADATA_BATCH_H_
6 #define COMPONENTS_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 "components/sync/protocol/data_type_state.pb.h" 11 #include "components/sync/protocol/data_type_state.pb.h"
12 #include "components/sync/protocol/entity_metadata.pb.h" 12 #include "components/sync/protocol/entity_metadata.pb.h"
13 13
14 namespace syncer { 14 namespace syncer_v2 {
15 15
16 // Map of storage keys to EntityMetadata proto. 16 // Map of storage keys to EntityMetadata proto.
17 typedef std::map<std::string, sync_pb::EntityMetadata> EntityMetadataMap; 17 typedef std::map<std::string, sync_pb::EntityMetadata> EntityMetadataMap;
18 18
19 // Container used to pass sync metadata from services to their processor. 19 // Container used to pass sync metadata from services to their processor.
20 class MetadataBatch { 20 class MetadataBatch {
21 public: 21 public:
22 MetadataBatch(); 22 MetadataBatch();
23 virtual ~MetadataBatch(); 23 virtual ~MetadataBatch();
24 24
(...skipping 10 matching lines...) Expand all
35 const sync_pb::DataTypeState& GetDataTypeState() const; 35 const sync_pb::DataTypeState& GetDataTypeState() const;
36 36
37 // Set the DataTypeState for this batch. 37 // Set the DataTypeState for this batch.
38 void SetDataTypeState(const sync_pb::DataTypeState& state); 38 void SetDataTypeState(const sync_pb::DataTypeState& state);
39 39
40 private: 40 private:
41 EntityMetadataMap metadata_map_; 41 EntityMetadataMap metadata_map_;
42 sync_pb::DataTypeState state_; 42 sync_pb::DataTypeState state_;
43 }; 43 };
44 44
45 } // namespace syncer 45 } // namespace syncer_v2
46 46
47 #endif // COMPONENTS_SYNC_API_METADATA_BATCH_H_ 47 #endif // COMPONENTS_SYNC_API_METADATA_BATCH_H_
OLDNEW
« no previous file with comments | « components/sync/api/fake_sync_change_processor.cc ('k') | components/sync/api/metadata_batch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698