#include "remoting/base/protobuf_http_request.h"
#include "remoting/base/protobuf_http_client_messages.pb.h"
#include "remoting/base/protobuf_http_request_config.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "third_party/protobuf/src/google/protobuf/message_lite.h"
namespace remoting {
namespace {
constexpr int kMaxResponseSizeBytes = …;
}
ProtobufHttpRequest::ProtobufHttpRequest(
std::unique_ptr<ProtobufHttpRequestConfig> config)
: … { … }
ProtobufHttpRequest::~ProtobufHttpRequest() = default;
void ProtobufHttpRequest::SetTimeoutDuration(base::TimeDelta timeout_duration) { … }
void ProtobufHttpRequest::OnAuthFailed(const ProtobufHttpStatus& status) { … }
void ProtobufHttpRequest::StartRequestInternal(
network::mojom::URLLoaderFactory* loader_factory) { … }
base::TimeDelta ProtobufHttpRequest::GetRequestTimeoutDuration() const { … }
void ProtobufHttpRequest::OnResponse(
std::unique_ptr<std::string> response_body) { … }
ProtobufHttpStatus ProtobufHttpRequest::ParseResponse(
std::unique_ptr<std::string> response_body) { … }
void ProtobufHttpRequest::RunResponseCallback(
const ProtobufHttpStatus& status) { … }
}