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

Unified Diff: components/sync/model/mutable_data_batch.cc

Issue 2416823003: [Sync] Move some things from core/ to model(_impl)/. (Closed)
Patch Set: Rebase. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/model/mutable_data_batch.h ('k') | components/sync/model/mutable_data_batch_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model/mutable_data_batch.cc
diff --git a/components/sync/core/data_batch_impl.cc b/components/sync/model/mutable_data_batch.cc
similarity index 55%
rename from components/sync/core/data_batch_impl.cc
rename to components/sync/model/mutable_data_batch.cc
index 36c1395259ba2930652ac445502b92b708b7bb71..281c46834efdd904393a21de3bfb86260cb8f3e3 100644
--- a/components/sync/core/data_batch_impl.cc
+++ b/components/sync/model/mutable_data_batch.cc
@@ -2,24 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/sync/core/data_batch_impl.h"
+#include "components/sync/model/mutable_data_batch.h"
namespace syncer {
-DataBatchImpl::DataBatchImpl() {}
+MutableDataBatch::MutableDataBatch() {}
-DataBatchImpl::~DataBatchImpl() {}
+MutableDataBatch::~MutableDataBatch() {}
-void DataBatchImpl::Put(const std::string& storage_key,
- std::unique_ptr<EntityData> specifics) {
+void MutableDataBatch::Put(const std::string& storage_key,
+ std::unique_ptr<EntityData> specifics) {
key_data_pairs_.push_back(KeyAndData(storage_key, std::move(specifics)));
}
-bool DataBatchImpl::HasNext() const {
+bool MutableDataBatch::HasNext() const {
return key_data_pairs_.size() > read_index_;
}
-KeyAndData DataBatchImpl::Next() {
+KeyAndData MutableDataBatch::Next() {
DCHECK(HasNext());
return std::move(key_data_pairs_[read_index_++]);
}
« no previous file with comments | « components/sync/model/mutable_data_batch.h ('k') | components/sync/model/mutable_data_batch_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698