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

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

Issue 2458013002: [Sync] Rename ModelTypeService to ModelTypeSyncBridge. (Closed)
Patch Set: s/SetBridgeError/ErrorOnNextCall 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
Index: components/sync/model/stub_model_type_sync_bridge.cc
diff --git a/components/sync/model/stub_model_type_sync_bridge.cc b/components/sync/model/stub_model_type_sync_bridge.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b07eff4d13f8f89b6427774a65d98dcee8877367
--- /dev/null
+++ b/components/sync/model/stub_model_type_sync_bridge.cc
@@ -0,0 +1,55 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/sync/model/stub_model_type_sync_bridge.h"
+
+#include "base/bind.h"
+#include "base/memory/ptr_util.h"
+#include "components/sync/model/fake_model_type_change_processor.h"
+
+namespace syncer {
+
+StubModelTypeSyncBridge::StubModelTypeSyncBridge()
+ : StubModelTypeSyncBridge(
+ base::Bind(&FakeModelTypeChangeProcessor::Create)) {}
+
+StubModelTypeSyncBridge::StubModelTypeSyncBridge(
+ const ChangeProcessorFactory& change_processor_factory)
+ : ModelTypeSyncBridge(change_processor_factory, PREFERENCES) {}
+
+StubModelTypeSyncBridge::~StubModelTypeSyncBridge() {}
+
+std::unique_ptr<MetadataChangeList>
+StubModelTypeSyncBridge::CreateMetadataChangeList() {
+ return std::unique_ptr<MetadataChangeList>();
+}
+
+SyncError StubModelTypeSyncBridge::MergeSyncData(
+ std::unique_ptr<MetadataChangeList> metadata_change_list,
+ EntityDataMap entity_data_map) {
+ return SyncError();
+}
+
+SyncError StubModelTypeSyncBridge::ApplySyncChanges(
+ std::unique_ptr<MetadataChangeList> metadata_change_list,
+ EntityChangeList entity_changes) {
+ return SyncError();
+}
+
+void StubModelTypeSyncBridge::GetData(StorageKeyList storage_keys,
+ DataCallback callback) {}
+
+void StubModelTypeSyncBridge::GetAllData(DataCallback callback) {}
+
+std::string StubModelTypeSyncBridge::GetClientTag(
+ const EntityData& entity_data) {
+ return std::string();
+}
+
+std::string StubModelTypeSyncBridge::GetStorageKey(
+ const EntityData& entity_data) {
+ return std::string();
+}
+
+} // namespace syncer
« no previous file with comments | « components/sync/model/stub_model_type_sync_bridge.h ('k') | components/sync/model_impl/shared_model_type_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698