#include "components/sharing_message/sharing_utils.h"
#include "components/sharing_message/proto/sharing_message.pb.h"
#include "components/sharing_message/sharing_constants.h"
#include "components/sync/protocol/sync_enums.pb.h"
#include "components/sync/service/sync_service.h"
#include "components/sync_device_info/device_info.h"
namespace {
bool CanListDevices(syncer::SyncService* sync_service) { … }
}
bool CanSendViaVapid(syncer::SyncService* sync_service) { … }
bool CanSendViaSenderID(syncer::SyncService* sync_service) { … }
bool IsSyncEnabledForSharing(syncer::SyncService* sync_service) { … }
bool IsSyncDisabledForSharing(syncer::SyncService* sync_service) { … }
std::optional<components_sharing_message::FCMChannelConfiguration>
GetFCMChannel(const syncer::DeviceInfo& device_info) { … }
SharingDevicePlatform GetDevicePlatform(const syncer::DeviceInfo& device_info) { … }