#include "remoting/base/corp_service_client.h"
#include "base/functional/bind.h"
#include "base/strings/stringize_macros.h"
#include "remoting/base/internal_headers.h"
#include "remoting/base/protobuf_http_request.h"
#include "remoting/base/protobuf_http_request_config.h"
#include "remoting/base/service_urls.h"
#include "remoting/base/version.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#if BUILDFLAG(REMOTING_INTERNAL)
#include "remoting/internal/base/api_keys.h"
#endif
namespace remoting {
CorpServiceClient::CorpServiceClient(
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory)
: … { … }
CorpServiceClient::~CorpServiceClient() = default;
void CorpServiceClient::ProvisionCorpMachine(
const std::string& owner_email,
const std::string& fqdn,
const std::string& public_key,
const std::optional<std::string>& existing_host_id,
ProvisionCorpMachineCallback callback) { … }
void CorpServiceClient::ReportProvisioningError(
const std::string& host_id,
const std::string& error_message,
ReportProvisioningErrorCallback callback) { … }
void CorpServiceClient::CancelPendingRequests() { … }
template <typename CallbackType>
void CorpServiceClient::ExecuteRequest(
const net::NetworkTrafficAnnotationTag& traffic_annotation,
const std::string& path,
std::unique_ptr<google::protobuf::MessageLite> request_message,
CallbackType callback) { … }
}