#include "components/send_tab_to_self/send_tab_to_self_sync_service.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/time/default_clock.h"
#include "components/history/core/browser/history_service.h"
#include "components/send_tab_to_self/features.h"
#include "components/send_tab_to_self/send_tab_to_self_bridge.h"
#include "components/send_tab_to_self/send_tab_to_self_model.h"
#include "components/sync/base/report_unrecoverable_error.h"
#include "components/sync/model/client_tag_based_data_type_processor.h"
#include "components/sync/model/data_type_store.h"
#include "components/sync_device_info/device_info_tracker.h"
namespace send_tab_to_self {
SendTabToSelfSyncService::SendTabToSelfSyncService() : … { … }
SendTabToSelfSyncService::SendTabToSelfSyncService(
version_info::Channel channel,
syncer::OnceDataTypeStoreFactory create_store_callback,
history::HistoryService* history_service,
PrefService* pref_service,
syncer::DeviceInfoTracker* device_info_tracker)
: … { … }
SendTabToSelfSyncService::~SendTabToSelfSyncService() = default;
void SendTabToSelfSyncService::OnSyncServiceInitialized(
syncer::SyncService* sync_service) { … }
std::optional<EntryPointDisplayReason>
SendTabToSelfSyncService::GetEntryPointDisplayReason(const GURL& url_to_share) { … }
SendTabToSelfModel* SendTabToSelfSyncService::GetSendTabToSelfModel() { … }
base::WeakPtr<syncer::DataTypeControllerDelegate>
SendTabToSelfSyncService::GetControllerDelegate() { … }
void SendTabToSelfSyncService::OnSyncShutdown(syncer::SyncService*) { … }
}