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

Side by Side Diff: components/sync/model/metadata_batch.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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
« no previous file with comments | « components/sync/model/metadata_batch.h ('k') | components/sync/model/metadata_change_list.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "components/sync/api/metadata_batch.h" 5 #include "components/sync/model/metadata_batch.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 namespace syncer { 9 namespace syncer {
10 10
11 MetadataBatch::MetadataBatch() {} 11 MetadataBatch::MetadataBatch() {}
12 MetadataBatch::~MetadataBatch() {} 12 MetadataBatch::~MetadataBatch() {}
13 13
14 EntityMetadataMap&& MetadataBatch::TakeAllMetadata() { 14 EntityMetadataMap&& MetadataBatch::TakeAllMetadata() {
15 return std::move(metadata_map_); 15 return std::move(metadata_map_);
16 } 16 }
17 17
18 void MetadataBatch::AddMetadata(const std::string& storage_key, 18 void MetadataBatch::AddMetadata(const std::string& storage_key,
19 const sync_pb::EntityMetadata& metadata) { 19 const sync_pb::EntityMetadata& metadata) {
20 metadata_map_.insert(std::make_pair(storage_key, metadata)); 20 metadata_map_.insert(std::make_pair(storage_key, metadata));
21 } 21 }
22 22
23 const sync_pb::ModelTypeState& MetadataBatch::GetModelTypeState() const { 23 const sync_pb::ModelTypeState& MetadataBatch::GetModelTypeState() const {
24 return state_; 24 return state_;
25 } 25 }
26 26
27 void MetadataBatch::SetModelTypeState(const sync_pb::ModelTypeState& state) { 27 void MetadataBatch::SetModelTypeState(const sync_pb::ModelTypeState& state) {
28 state_ = state; 28 state_ = state;
29 } 29 }
30 30
31 } // namespace syncer 31 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/model/metadata_batch.h ('k') | components/sync/model/metadata_change_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698