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

Side by Side Diff: components/history/core/browser/typed_url_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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_HISTORY_CORE_BROWSER_TYPED_URL_SYNC_BRIDGE_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_TYPED_URL_SYNC_BRIDGE_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_TYPED_URL_SYNC_BRIDGE_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_TYPED_URL_SYNC_BRIDGE_H_
7 7
8 #include "base/scoped_observer.h" 8 #include "base/scoped_observer.h"
9 #include "components/history/core/browser/history_backend_observer.h" 9 #include "components/history/core/browser/history_backend_observer.h"
10 #include "components/history/core/browser/typed_url_sync_metadata_database.h" 10 #include "components/history/core/browser/typed_url_sync_metadata_database.h"
(...skipping 11 matching lines...) Expand all
22 TypedURLSyncBridge(HistoryBackend* history_backend, 22 TypedURLSyncBridge(HistoryBackend* history_backend,
23 TypedURLSyncMetadataDatabase* sync_metadata_store, 23 TypedURLSyncMetadataDatabase* sync_metadata_store,
24 const ChangeProcessorFactory& change_processor_factory); 24 const ChangeProcessorFactory& change_processor_factory);
25 ~TypedURLSyncBridge() override; 25 ~TypedURLSyncBridge() override;
26 26
27 // syncer::ModelTypeService implementation. 27 // syncer::ModelTypeService implementation.
28 std::unique_ptr<syncer::MetadataChangeList> CreateMetadataChangeList() 28 std::unique_ptr<syncer::MetadataChangeList> CreateMetadataChangeList()
29 override; 29 override;
30 base::Optional<syncer::ModelError> MergeSyncData( 30 base::Optional<syncer::ModelError> MergeSyncData(
31 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list, 31 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list,
32 syncer::EntityDataMap entity_data_map) override; 32 syncer::EntityChangeList entity_data) override;
33 base::Optional<syncer::ModelError> ApplySyncChanges( 33 base::Optional<syncer::ModelError> ApplySyncChanges(
34 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list, 34 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list,
35 syncer::EntityChangeList entity_changes) override; 35 syncer::EntityChangeList entity_changes) override;
36 void GetData(StorageKeyList storage_keys, DataCallback callback) override; 36 void GetData(StorageKeyList storage_keys, DataCallback callback) override;
37 void GetAllData(DataCallback callback) override; 37 void GetAllData(DataCallback callback) override;
38 std::string GetClientTag(const syncer::EntityData& entity_data) override; 38 std::string GetClientTag(const syncer::EntityData& entity_data) override;
39 std::string GetStorageKey(const syncer::EntityData& entity_data) override; 39 std::string GetStorageKey(const syncer::EntityData& entity_data) override;
40 40
41 // history::HistoryBackendObserver: 41 // history::HistoryBackendObserver:
42 void OnURLVisited(history::HistoryBackend* history_backend, 42 void OnURLVisited(history::HistoryBackend* history_backend,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // backend. 114 // backend.
115 ScopedObserver<history::HistoryBackend, history::HistoryBackendObserver> 115 ScopedObserver<history::HistoryBackend, history::HistoryBackendObserver>
116 history_backend_observer_; 116 history_backend_observer_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(TypedURLSyncBridge); 118 DISALLOW_COPY_AND_ASSIGN(TypedURLSyncBridge);
119 }; 119 };
120 120
121 } // namespace history 121 } // namespace history
122 122
123 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TYPED_URL_SYNC_BRIDGE_H_ 123 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TYPED_URL_SYNC_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698