chromium/remoting/proto/internal_stubs.cc

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

#include "remoting/proto/internal_stubs.h"

#include <memory>
#include <string>

namespace remoting::internal {

namespace {
// Rather than using a static string per function or a member in each aliased
// proto, we just use the same empty string here and return it as a const& so
// callers can't modify or mess with it.
const std::string& GetEmptyStringRef() {}
}  // namespace

std::string DoNothingProto::GetTypeName() const {}

// DoNothingProto

google::protobuf::MessageLite* DoNothingProto::New(
    google::protobuf::Arena* arena) const {}

void DoNothingProto::Clear() {}

bool DoNothingProto::IsInitialized() const {}

void DoNothingProto::CheckTypeAndMergeFrom(const MessageLite& other) {}

size_t DoNothingProto::ByteSizeLong() const {}

int DoNothingProto::GetCachedSize() const {}

uint8_t* DoNothingProto::_InternalSerialize(
    uint8_t* ptr,
    google::protobuf::io::EpsCopyOutputStream* stream) const {}

// ===========================
// RemoteAccessService helpers
// ===========================

// ProvisionCorpMachine

std::string GetMachineProvisioningRequestPath() {}

std::unique_ptr<ProvisionCorpMachineRequest> GetMachineProvisioningRequest(
    const std::string& owner_email,
    const std::string& fqdn,
    const std::string& public_key,
    const std::string& version,
    const std::optional<std::string>& existing_host_id) {}

const std::string& GetAuthorizationCode(const ProvisionCorpMachineResponse&) {}
const std::string& GetServiceAccount(const ProvisionCorpMachineResponse&) {}
const std::string& GetOwnerEmail(const ProvisionCorpMachineResponse&) {}
const std::string& GetHostId(const ProvisionCorpMachineResponse&) {}

// ReportProvisioningError

std::string GetReportProvisioningErrorRequestPath() {}

std::unique_ptr<ReportProvisioningErrorRequest>
GetReportProvisioningErrorRequest(const std::string& host_id,
                                  const std::string& error_message,
                                  const std::string& version) {}

// SendHeartbeat

std::string GetSendHeartbeatRequestPath() {}

std::unique_ptr<SendHeartbeatRequest> GetSendHeartbeatRequest(
    const std::string& host_id) {}

// UpdateRemoteAccessHost

std::string GetUpdateRemoteAccessHostRequestPath() {}

std::unique_ptr<UpdateRemoteAccessHostRequest> GetUpdateRemoteAccessHostRequest(
    const std::string& host_id) {}

// ===========================
// SessionAuthzService helpers
// ===========================

// GenerateHostToken

std::string GetGenerateHostTokenRequestPath() {}

std::unique_ptr<GenerateHostTokenRequest> GetGenerateHostTokenRequest(
    const GenerateHostTokenRequestStruct&) {}

std::unique_ptr<GenerateHostTokenResponseStruct>
GetGenerateHostTokenResponseStruct(const GenerateHostTokenResponse&) {}

// VerifySessionToken

std::string GetVerifySessionTokenRequestPath() {}

std::unique_ptr<VerifySessionTokenRequest> GetVerifySessionTokenRequest(
    const VerifySessionTokenRequestStruct&) {}

std::unique_ptr<VerifySessionTokenResponseStruct>
GetVerifySessionTokenResponseStruct(const VerifySessionTokenResponse&) {}

// ReauthorizeHost

std::string GetReauthorizeHostRequestPath() {}

std::unique_ptr<ReauthorizeHostRequest> GetReauthorizeHostRequest(
    const ReauthorizeHostRequestStruct&) {}

extern std::unique_ptr<ReauthorizeHostResponseStruct>
GetReauthorizeHostResponseStruct(const ReauthorizeHostResponse&) {}

// ======================
// LoggingService helpers
// ======================

// ReportSessionDisconnected

std::string GetReportSessionDisconnectedRequestPath() {}

std::unique_ptr<ReportSessionDisconnectedRequest>
GetReportSessionDisconnectedRequest(
    const ReportSessionDisconnectedRequestStruct&) {}

}  // namespace remoting::internal