#include "components/sync_sessions/synced_session.h"
#include <vector>
#include "base/strings/utf_string_conversions.h"
#include "components/sessions/core/serialized_navigation_driver.h"
#include "components/sync/base/features.h"
#include "components/sync/base/page_transition_conversion.h"
#include "components/sync/base/time.h"
#include "components/sync_device_info/device_info_proto_enum_util.h"
#include "ui/base/page_transition_types.h"
namespace sync_sessions {
namespace {
SerializedNavigationEntry;
const int kObsoleteReferrerPolicyNever = …;
const int kMaxFaviconUrlSizeToSync = …;
}
SerializedNavigationEntry SessionNavigationFromSyncData(
int index,
const sync_pb::TabNavigation& sync_data) { … }
sync_pb::TabNavigation SessionNavigationToSyncData(
const SerializedNavigationEntry& navigation) { … }
void SetSessionTabFromSyncData(const sync_pb::SessionTab& sync_data,
base::Time timestamp,
sessions::SessionTab* tab) { … }
sync_pb::SessionTab SessionTabToSyncData(
const sessions::SessionTab& tab,
std::optional<sync_pb::SyncEnums::BrowserType> browser_type) { … }
SyncedSessionWindow::SyncedSessionWindow() = default;
SyncedSessionWindow::~SyncedSessionWindow() = default;
sync_pb::SessionWindow SyncedSessionWindow::ToSessionWindowProto() const { … }
SyncedSession::SyncedSession()
: … { … }
SyncedSession::~SyncedSession() = default;
void SyncedSession::SetSessionTag(const std::string& session_tag) { … }
const std::string& SyncedSession::GetSessionTag() const { … }
void SyncedSession::SetSessionName(const std::string& session_name) { … }
const std::string& SyncedSession::GetSessionName() const { … }
void SyncedSession::SetModifiedTime(const base::Time& modified_time) { … }
const base::Time& SyncedSession::GetModifiedTime() const { … }
void SyncedSession::SetDeviceTypeAndFormFactor(
const sync_pb::SyncEnums::DeviceType& local_device_type,
const syncer::DeviceInfo::FormFactor& local_device_form_factor) { … }
syncer::DeviceInfo::FormFactor SyncedSession::GetDeviceFormFactor() const { … }
sync_pb::SessionHeader SyncedSession::ToSessionHeaderProto() const { … }
}