#include "components/sync/engine/cycle/sync_cycle_snapshot.h"
#include <string>
#include <utility>
#include "base/base64.h"
#include "base/i18n/time_formatting.h"
#include "base/json/json_writer.h"
#include "base/values.h"
#include "components/sync/protocol/proto_enum_conversions.h"
namespace syncer {
namespace {
std::u16string FormatTimeDelta(base::TimeDelta delta) { … }
}
SyncCycleSnapshot::SyncCycleSnapshot()
: … { … }
SyncCycleSnapshot::SyncCycleSnapshot(
const std::string& birthday,
const std::string& bag_of_chips,
const ModelNeutralState& model_neutral_state,
const ProgressMarkerMap& download_progress_markers,
bool is_silenced,
int num_server_conflicts,
bool notifications_enabled,
base::Time sync_start_time,
base::Time poll_finish_time,
sync_pb::SyncEnums::GetUpdatesOrigin get_updates_origin,
base::TimeDelta poll_interval,
bool has_remaining_local_changes)
: … { … }
SyncCycleSnapshot::SyncCycleSnapshot(const SyncCycleSnapshot& other) = default;
SyncCycleSnapshot::~SyncCycleSnapshot() = default;
base::Value::Dict SyncCycleSnapshot::ToValue() const { … }
std::string SyncCycleSnapshot::ToString() const { … }
const ProgressMarkerMap& SyncCycleSnapshot::download_progress_markers() const { … }
bool SyncCycleSnapshot::is_silenced() const { … }
int SyncCycleSnapshot::num_server_conflicts() const { … }
bool SyncCycleSnapshot::notifications_enabled() const { … }
base::Time SyncCycleSnapshot::sync_start_time() const { … }
base::Time SyncCycleSnapshot::poll_finish_time() const { … }
bool SyncCycleSnapshot::has_remaining_local_changes() const { … }
bool SyncCycleSnapshot::is_initialized() const { … }
sync_pb::SyncEnums::GetUpdatesOrigin SyncCycleSnapshot::get_updates_origin()
const { … }
base::TimeDelta SyncCycleSnapshot::poll_interval() const { … }
}