// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_POWER_BOOKMARKS_STORAGE_POWER_BOOKMARK_SYNC_BRIDGE_H_ #define COMPONENTS_POWER_BOOKMARKS_STORAGE_POWER_BOOKMARK_SYNC_BRIDGE_H_ #include "base/uuid.h" #include "components/sync/model/data_type_sync_bridge.h" namespace syncer { class ModelError; } // namespace syncer namespace power_bookmarks { class Power; class PowerBookmarkSyncMetadataDatabase; // Transaction wraps a database transaction. When it's out of scope the // underlying transaction will be cancelled if not committed. // TODO(crbug.com/40247772): Find a better layout for this class. class Transaction { … }; // PowerBookmarkSyncBridge is responsible for syncing all powers to different // devices. It runs on the same thread as the power bookmark database // implementation. class PowerBookmarkSyncBridge : public syncer::DataTypeSyncBridge { … }; } // namespace power_bookmarks #endif // COMPONENTS_POWER_BOOKMARKS_STORAGE_POWER_BOOKMARK_SYNC_BRIDGE_H_