| Index: components/history/core/browser/typed_url_sync_bridge.h
|
| diff --git a/components/history/core/browser/typed_url_sync_bridge.h b/components/history/core/browser/typed_url_sync_bridge.h
|
| index 9dd05415a35d1fdbcb3938134513bffbf425cd32..59eb0756af96e44b24388505a3ba8d080c8257ad 100644
|
| --- a/components/history/core/browser/typed_url_sync_bridge.h
|
| +++ b/components/history/core/browser/typed_url_sync_bridge.h
|
| @@ -10,12 +10,19 @@
|
| #include "components/sync/model/model_type_sync_bridge.h"
|
| #include "components/sync/model/sync_error.h"
|
|
|
| +namespace syncer {
|
| +class SyncMetadataStore;
|
| +}
|
| +
|
| namespace history {
|
|
|
| class TypedURLSyncBridge : public syncer::ModelTypeSyncBridge,
|
| public history::HistoryBackendObserver {
|
| public:
|
| + // |sync_metadata_store| is owned by |history_backend|, and must outlive
|
| + // TypedURLSyncBridge.
|
| TypedURLSyncBridge(HistoryBackend* history_backend,
|
| + syncer::SyncMetadataStore* sync_metadata_store,
|
| const ChangeProcessorFactory& change_processor_factory);
|
| ~TypedURLSyncBridge() override;
|
|
|
| @@ -48,9 +55,14 @@ class TypedURLSyncBridge : public syncer::ModelTypeSyncBridge,
|
| const std::set<GURL>& favicon_urls) override;
|
|
|
| private:
|
| - // The backend we're syncing local changes from and sync changes to.
|
| + // A non-owning pointer to the backend, which we're syncing local changes from
|
| + // and sync changes to.
|
| HistoryBackend* const history_backend_;
|
|
|
| + // A non-owning pointer to the database, which is for storing typed urls sync
|
| + // metadata and state.
|
| + syncer::SyncMetadataStore* const sync_metadata_store_;
|
| +
|
| // Since HistoryBackend use SequencedTaskRunner, so should use SequenceChecker
|
| // here.
|
| base::SequenceChecker sequence_checker_;
|
|
|