#include "components/ip_protection/common/ip_protection_config_http.h"
#include <optional>
#include <string>
#include <string_view>
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/types/expected.h"
#include "net/base/features.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/resource_request_body.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
namespace ip_protection {
namespace {
constexpr net::NetworkTrafficAnnotationTag kGetTokenTrafficAnnotation = …;
const int kIpProtectionRequestMaxBodySize = …;
const char kProtobufContentType[] = …;
}
IpProtectionConfigHttp::IpProtectionConfigHttp(
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory)
: … { … }
IpProtectionConfigHttp::~IpProtectionConfigHttp() = default;
void IpProtectionConfigHttp::DoRequest(
quiche::BlindSignMessageRequestType request_type,
std::optional<std::string_view> authorization_header,
const std::string& body,
quiche::BlindSignMessageCallback callback) { … }
void IpProtectionConfigHttp::OnDoRequestCompleted(
std::unique_ptr<network::SimpleURLLoader> url_loader,
quiche::BlindSignMessageCallback callback,
std::unique_ptr<std::string> response) { … }
}