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

Unified Diff: components/history/core/browser/typed_url_sync_bridge.h

Issue 2850633004: [USS] implement CreateMetadataChangeList and GetClientTag (Closed)
Patch Set: comments Created 3 years, 7 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/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_;
« no previous file with comments | « components/history/core/browser/history_backend.cc ('k') | components/history/core/browser/typed_url_sync_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698