OLD | NEW |
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_MODEL_METADATA_BATCH_H_ |
6 #define COMPONENTS_SYNC_API_METADATA_BATCH_H_ | 6 #define COMPONENTS_SYNC_MODEL_METADATA_BATCH_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "components/sync/protocol/entity_metadata.pb.h" | 11 #include "components/sync/protocol/entity_metadata.pb.h" |
12 #include "components/sync/protocol/model_type_state.pb.h" | 12 #include "components/sync/protocol/model_type_state.pb.h" |
13 | 13 |
14 namespace syncer { | 14 namespace syncer { |
15 | 15 |
16 // Map of storage keys to EntityMetadata proto. | 16 // Map of storage keys to EntityMetadata proto. |
(...skipping 20 matching lines...) Expand all Loading... |
37 // Set the ModelTypeState for this batch. | 37 // Set the ModelTypeState for this batch. |
38 void SetModelTypeState(const sync_pb::ModelTypeState& state); | 38 void SetModelTypeState(const sync_pb::ModelTypeState& state); |
39 | 39 |
40 private: | 40 private: |
41 EntityMetadataMap metadata_map_; | 41 EntityMetadataMap metadata_map_; |
42 sync_pb::ModelTypeState state_; | 42 sync_pb::ModelTypeState state_; |
43 }; | 43 }; |
44 | 44 |
45 } // namespace syncer | 45 } // namespace syncer |
46 | 46 |
47 #endif // COMPONENTS_SYNC_API_METADATA_BATCH_H_ | 47 #endif // COMPONENTS_SYNC_MODEL_METADATA_BATCH_H_ |
OLD | NEW |