chromium/components/sync/service/glue/sync_transport_data_prefs.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/sync/service/glue/sync_transport_data_prefs.h"

#include <memory>
#include <utility>

#include "base/base64.h"
#include "base/feature_list.h"
#include "base/json/values_util.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "components/signin/public/base/gaia_id_hash.h"
#include "components/sync/base/features.h"
#include "components/sync/base/pref_names.h"
#include "components/sync/service/account_pref_utils.h"

namespace syncer {

namespace {

const char kSyncGaiaId[] =;

const char kSyncTransportDataPerAccount[] =;

const char kSyncCacheGuid[] =;
const char kSyncBirthday[] =;
const char kSyncBagOfChips[] =;

// 64-bit integer serialization of the base::Time when the last sync occurred.
const char kSyncLastSyncedTime[] =;

// 64-bit integer serialization of the base::Time of the last sync poll.
const char kSyncLastPollTime[] =;

// 64-bit integer serialization of base::TimeDelta storing poll intervals
// received by the server. For historic reasons, this is called
// "short_poll_interval", but it's not worth the hassle to rename it.
const char kSyncPollInterval[] =;

}  // namespace

SyncTransportDataPrefs::SyncTransportDataPrefs(
    PrefService* pref_service,
    const signin::GaiaIdHash& gaia_id_hash)
    :{}

SyncTransportDataPrefs::~SyncTransportDataPrefs() = default;

// static
void SyncTransportDataPrefs::RegisterProfilePrefs(
    PrefRegistrySimple* registry) {}

void SyncTransportDataPrefs::ClearForCurrentAccount() {}

// static
void SyncTransportDataPrefs::KeepAccountSettingsPrefsOnlyForUsers(
    PrefService* pref_service,
    const std::vector<signin::GaiaIdHash>& available_gaia_ids) {}

base::Time SyncTransportDataPrefs::GetLastSyncedTime() const {}

void SyncTransportDataPrefs::SetLastSyncedTime(base::Time time) {}

base::Time SyncTransportDataPrefs::GetLastPollTime() const {}

void SyncTransportDataPrefs::SetLastPollTime(base::Time time) {}

base::TimeDelta SyncTransportDataPrefs::GetPollInterval() const {}

void SyncTransportDataPrefs::SetPollInterval(base::TimeDelta interval) {}

void SyncTransportDataPrefs::SetCurrentSyncingGaiaId(
    const std::string& gaia_id) {}

std::string SyncTransportDataPrefs::GetCurrentSyncingGaiaId() const {}

void SyncTransportDataPrefs::ClearCurrentSyncingGaiaId() {}

// static
bool SyncTransportDataPrefs::HasCurrentSyncingGaiaId(
    const PrefService* pref_service) {}

// static
void SyncTransportDataPrefs::ClearCurrentSyncingGaiaId(
    PrefService* pref_service) {}

void SyncTransportDataPrefs::SetCacheGuid(const std::string& cache_guid) {}

std::string SyncTransportDataPrefs::GetCacheGuid() const {}

void SyncTransportDataPrefs::SetBirthday(const std::string& birthday) {}

std::string SyncTransportDataPrefs::GetBirthday() const {}

void SyncTransportDataPrefs::SetBagOfChips(const std::string& bag_of_chips) {}

std::string SyncTransportDataPrefs::GetBagOfChips() const {}

}  // namespace syncer