chromium/components/sync_device_info/device_info.cc

// Copyright 2012 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_device_info/device_info.h"

#include <optional>
#include <utility>

#include "components/sync/protocol/device_info_specifics.pb.h"
#include "components/sync/protocol/sync_enums.pb.h"

namespace syncer {

bool DeviceInfo::SharingTargetInfo::operator==(
    const SharingTargetInfo& other) const {}

DeviceInfo::SharingInfo::SharingInfo(
    SharingTargetInfo vapid_target_info,
    SharingTargetInfo sender_id_target_info,
    std::string chime_representative_target_id,
    std::set<sync_pb::SharingSpecificFields::EnabledFeatures> enabled_features)
    :{}

DeviceInfo::SharingInfo::SharingInfo(const SharingInfo& other) = default;

DeviceInfo::SharingInfo::SharingInfo(SharingInfo&& other) = default;

DeviceInfo::SharingInfo& DeviceInfo::SharingInfo::operator=(
    const SharingInfo& other) = default;

DeviceInfo::SharingInfo::~SharingInfo() = default;

bool DeviceInfo::SharingInfo::operator==(const SharingInfo& other) const {}

DeviceInfo::PhoneAsASecurityKeyInfo::PhoneAsASecurityKeyInfo() = default;
DeviceInfo::PhoneAsASecurityKeyInfo::PhoneAsASecurityKeyInfo(
    const DeviceInfo::PhoneAsASecurityKeyInfo& other) = default;
DeviceInfo::PhoneAsASecurityKeyInfo::PhoneAsASecurityKeyInfo(
    DeviceInfo::PhoneAsASecurityKeyInfo&& other) = default;
DeviceInfo::PhoneAsASecurityKeyInfo&
DeviceInfo::PhoneAsASecurityKeyInfo::operator=(
    const DeviceInfo::PhoneAsASecurityKeyInfo& other) = default;
DeviceInfo::PhoneAsASecurityKeyInfo::~PhoneAsASecurityKeyInfo() = default;

bool DeviceInfo::PhoneAsASecurityKeyInfo::NonRotatingFieldsEqual(
    const PhoneAsASecurityKeyInfo& other) const {}

DeviceInfo::DeviceInfo(
    const std::string& guid,
    const std::string& client_name,
    const std::string& chrome_version,
    const std::string& sync_user_agent,
    const sync_pb::SyncEnums::DeviceType device_type,
    const OsType os_type,
    const FormFactor form_factor,
    const std::string& signin_scoped_device_id,
    const std::string& manufacturer_name,
    const std::string& model_name,
    const std::string& full_hardware_class,
    base::Time last_updated_timestamp,
    base::TimeDelta pulse_interval,
    bool send_tab_to_self_receiving_enabled,
    sync_pb::SyncEnums_SendTabReceivingType send_tab_to_self_receiving_type,
    const std::optional<SharingInfo>& sharing_info,
    const std::optional<PhoneAsASecurityKeyInfo>& paask_info,
    const std::string& fcm_registration_token,
    const DataTypeSet& interested_data_types,
    std::optional<base::Time> floating_workspace_last_signin_timestamp)
    :{}

DeviceInfo::~DeviceInfo() = default;

const std::string& DeviceInfo::guid() const {}

const std::string& DeviceInfo::client_name() const {}

const std::string& DeviceInfo::chrome_version() const {}

const std::string& DeviceInfo::sync_user_agent() const {}

const std::string& DeviceInfo::public_id() const {}

sync_pb::SyncEnums::DeviceType DeviceInfo::device_type() const {}

DeviceInfo::OsType DeviceInfo::os_type() const {}

DeviceInfo::FormFactor DeviceInfo::form_factor() const {}

const std::string& DeviceInfo::signin_scoped_device_id() const {}

const std::string& DeviceInfo::manufacturer_name() const {}

const std::string& DeviceInfo::model_name() const {}

const std::string& DeviceInfo::full_hardware_class() const {}

base::Time DeviceInfo::last_updated_timestamp() const {}

base::TimeDelta DeviceInfo::pulse_interval() const {}

bool DeviceInfo::send_tab_to_self_receiving_enabled() const {}

sync_pb::SyncEnums_SendTabReceivingType
DeviceInfo::send_tab_to_self_receiving_type() const {}

const std::optional<DeviceInfo::SharingInfo>& DeviceInfo::sharing_info() const {}

const std::optional<DeviceInfo::PhoneAsASecurityKeyInfo>&
DeviceInfo::paask_info() const {}

const std::string& DeviceInfo::fcm_registration_token() const {}

const DataTypeSet& DeviceInfo::interested_data_types() const {}

std::optional<base::Time> DeviceInfo::floating_workspace_last_signin_timestamp()
    const {}

void DeviceInfo::set_public_id(const std::string& id) {}

void DeviceInfo::set_full_hardware_class(
    const std::string& full_hardware_class) {}

void DeviceInfo::set_send_tab_to_self_receiving_enabled(bool new_value) {}

void DeviceInfo::set_send_tab_to_self_receiving_type(
    sync_pb::SyncEnums_SendTabReceivingType new_value) {}

void DeviceInfo::set_sharing_info(
    const std::optional<SharingInfo>& sharing_info) {}

void DeviceInfo::set_paask_info(
    std::optional<PhoneAsASecurityKeyInfo>&& paask_info) {}

void DeviceInfo::set_client_name(const std::string& client_name) {}

void DeviceInfo::set_fcm_registration_token(const std::string& fcm_token) {}

void DeviceInfo::set_interested_data_types(const DataTypeSet& data_types) {}

void DeviceInfo::set_floating_workspace_last_signin_timestamp(
    std::optional<base::Time> time) {}

}  // namespace syncer