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

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

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/model_type_store_test_util.cc ('k') | components/sync/model/mutable_data_batch.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.h
diff --git a/components/sync/core/data_batch_impl.h b/components/sync/model/mutable_data_batch.h
similarity index 80%
rename from components/sync/core/data_batch_impl.h
rename to components/sync/model/mutable_data_batch.h
index a1405937bf60f15924d0cfe598713accbda4c62f..5016f066a60a12864074e80f46cbf45b5edb3baa 100644
--- a/components/sync/core/data_batch_impl.h
+++ b/components/sync/model/mutable_data_batch.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_SYNC_CORE_DATA_BATCH_IMPL_H_
-#define COMPONENTS_SYNC_CORE_DATA_BATCH_IMPL_H_
+#ifndef COMPONENTS_SYNC_MODEL_MUTABLE_DATA_BATCH_H_
+#define COMPONENTS_SYNC_MODEL_MUTABLE_DATA_BATCH_H_
#include <stddef.h>
@@ -23,10 +23,10 @@ namespace syncer {
// them until Next() is invoked, when it gives up ownerhsip. Because a vector
// is used internally, this impl is unaware when duplcate storage_keys are used,
// and it is the caller's job to avoid this.
-class DataBatchImpl : public DataBatch {
+class MutableDataBatch : public DataBatch {
public:
- DataBatchImpl();
- ~DataBatchImpl() override;
+ MutableDataBatch();
+ ~MutableDataBatch() override;
// Takes ownership of the data tied to a given key used for storage. Put
// should be called at most once for any given storfage_key. Data will be
@@ -42,9 +42,9 @@ class DataBatchImpl : public DataBatch {
std::vector<KeyAndData> key_data_pairs_;
size_t read_index_ = 0;
- DISALLOW_COPY_AND_ASSIGN(DataBatchImpl);
+ DISALLOW_COPY_AND_ASSIGN(MutableDataBatch);
};
} // namespace syncer
-#endif // COMPONENTS_SYNC_CORE_DATA_BATCH_IMPL_H_
+#endif // COMPONENTS_SYNC_MODEL_MUTABLE_DATA_BATCH_H_
« no previous file with comments | « components/sync/model/model_type_store_test_util.cc ('k') | components/sync/model/mutable_data_batch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698