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

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

Issue 2923363004: [Sync] Migrate bridge implementations to change list based MergeSyncData (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
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 #include "components/sync/model/stub_model_type_sync_bridge.h" 5 #include "components/sync/model/stub_model_type_sync_bridge.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "components/sync/model/fake_model_type_change_processor.h" 9 #include "components/sync/model/fake_model_type_change_processor.h"
10 10
11 namespace syncer { 11 namespace syncer {
12 12
13 StubModelTypeSyncBridge::StubModelTypeSyncBridge() 13 StubModelTypeSyncBridge::StubModelTypeSyncBridge()
14 : StubModelTypeSyncBridge( 14 : StubModelTypeSyncBridge(
15 base::Bind(&FakeModelTypeChangeProcessor::Create)) {} 15 base::Bind(&FakeModelTypeChangeProcessor::Create)) {}
16 16
17 StubModelTypeSyncBridge::StubModelTypeSyncBridge( 17 StubModelTypeSyncBridge::StubModelTypeSyncBridge(
18 const ChangeProcessorFactory& change_processor_factory) 18 const ChangeProcessorFactory& change_processor_factory)
19 : ModelTypeSyncBridge(change_processor_factory, PREFERENCES) {} 19 : ModelTypeSyncBridge(change_processor_factory, PREFERENCES) {}
20 20
21 StubModelTypeSyncBridge::~StubModelTypeSyncBridge() {} 21 StubModelTypeSyncBridge::~StubModelTypeSyncBridge() {}
22 22
23 std::unique_ptr<MetadataChangeList> 23 std::unique_ptr<MetadataChangeList>
24 StubModelTypeSyncBridge::CreateMetadataChangeList() { 24 StubModelTypeSyncBridge::CreateMetadataChangeList() {
25 return std::unique_ptr<MetadataChangeList>(); 25 return std::unique_ptr<MetadataChangeList>();
26 } 26 }
27 27
28 base::Optional<ModelError> StubModelTypeSyncBridge::MergeSyncData( 28 base::Optional<ModelError> StubModelTypeSyncBridge::MergeSyncData(
29 std::unique_ptr<MetadataChangeList> metadata_change_list, 29 std::unique_ptr<MetadataChangeList> metadata_change_list,
30 EntityDataMap entity_data_map) { 30 EntityChangeList entity_data) {
31 return {}; 31 return {};
32 } 32 }
33 33
34 base::Optional<ModelError> StubModelTypeSyncBridge::ApplySyncChanges( 34 base::Optional<ModelError> StubModelTypeSyncBridge::ApplySyncChanges(
35 std::unique_ptr<MetadataChangeList> metadata_change_list, 35 std::unique_ptr<MetadataChangeList> metadata_change_list,
36 EntityChangeList entity_changes) { 36 EntityChangeList entity_changes) {
37 return {}; 37 return {};
38 } 38 }
39 39
40 void StubModelTypeSyncBridge::GetData(StorageKeyList storage_keys, 40 void StubModelTypeSyncBridge::GetData(StorageKeyList storage_keys,
41 DataCallback callback) {} 41 DataCallback callback) {}
42 42
43 void StubModelTypeSyncBridge::GetAllData(DataCallback callback) {} 43 void StubModelTypeSyncBridge::GetAllData(DataCallback callback) {}
44 44
45 std::string StubModelTypeSyncBridge::GetClientTag( 45 std::string StubModelTypeSyncBridge::GetClientTag(
46 const EntityData& entity_data) { 46 const EntityData& entity_data) {
47 return std::string(); 47 return std::string();
48 } 48 }
49 49
50 std::string StubModelTypeSyncBridge::GetStorageKey( 50 std::string StubModelTypeSyncBridge::GetStorageKey(
51 const EntityData& entity_data) { 51 const EntityData& entity_data) {
52 return std::string(); 52 return std::string();
53 } 53 }
54 54
55 } // namespace syncer 55 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/model/stub_model_type_sync_bridge.h ('k') | components/sync/user_events/user_event_sync_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698