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

Side by Side Diff: components/sync/device_info/device_info_sync_bridge.h

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 #ifndef COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_ 5 #ifndef COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_
6 #define COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_ 6 #define COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 25 matching lines...) Expand all
36 public: 36 public:
37 DeviceInfoSyncBridge(LocalDeviceInfoProvider* local_device_info_provider, 37 DeviceInfoSyncBridge(LocalDeviceInfoProvider* local_device_info_provider,
38 const ModelTypeStoreFactory& store_factory, 38 const ModelTypeStoreFactory& store_factory,
39 const ChangeProcessorFactory& change_processor_factory); 39 const ChangeProcessorFactory& change_processor_factory);
40 ~DeviceInfoSyncBridge() override; 40 ~DeviceInfoSyncBridge() override;
41 41
42 // ModelTypeSyncBridge implementation. 42 // ModelTypeSyncBridge implementation.
43 std::unique_ptr<MetadataChangeList> CreateMetadataChangeList() override; 43 std::unique_ptr<MetadataChangeList> CreateMetadataChangeList() override;
44 base::Optional<ModelError> MergeSyncData( 44 base::Optional<ModelError> MergeSyncData(
45 std::unique_ptr<MetadataChangeList> metadata_change_list, 45 std::unique_ptr<MetadataChangeList> metadata_change_list,
46 EntityDataMap entity_data_map) override; 46 EntityChangeList entity_data) override;
47 base::Optional<ModelError> ApplySyncChanges( 47 base::Optional<ModelError> ApplySyncChanges(
48 std::unique_ptr<MetadataChangeList> metadata_change_list, 48 std::unique_ptr<MetadataChangeList> metadata_change_list,
49 EntityChangeList entity_changes) override; 49 EntityChangeList entity_changes) override;
50 void GetData(StorageKeyList storage_keys, DataCallback callback) override; 50 void GetData(StorageKeyList storage_keys, DataCallback callback) override;
51 void GetAllData(DataCallback callback) override; 51 void GetAllData(DataCallback callback) override;
52 std::string GetClientTag(const EntityData& entity_data) override; 52 std::string GetClientTag(const EntityData& entity_data) override;
53 std::string GetStorageKey(const EntityData& entity_data) override; 53 std::string GetStorageKey(const EntityData& entity_data) override;
54 void DisableSync() override; 54 void DisableSync() override;
55 55
56 // DeviceInfoTracker implementation. 56 // DeviceInfoTracker implementation.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Used to update our local device info once every pulse interval. 139 // Used to update our local device info once every pulse interval.
140 base::OneShotTimer pulse_timer_; 140 base::OneShotTimer pulse_timer_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncBridge); 142 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncBridge);
143 }; 143 };
144 144
145 } // namespace syncer 145 } // namespace syncer
146 146
147 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_ 147 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_
OLDNEW
« no previous file with comments | « components/reading_list/core/reading_list_store_unittest.cc ('k') | components/sync/device_info/device_info_sync_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698