#include "components/domain_reliability/uploader.h"
#include <utility>
#include "base/containers/unique_ptr_adapters.h"
#include "base/functional/callback.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/not_fatal_until.h"
#include "base/supports_user_data.h"
#include "components/domain_reliability/util.h"
#include "net/base/elements_upload_data_stream.h"
#include "net/base/isolation_info.h"
#include "net/base/net_errors.h"
#include "net/base/upload_bytes_element_reader.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_util.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
namespace domain_reliability {
namespace {
const char kJsonMimeType[] = …;
struct UploadDepthData : public base::SupportsUserData::Data { … };
const void* const UploadDepthData::kUserDataKey = …;
}
class DomainReliabilityUploaderImpl : public DomainReliabilityUploader,
public net::URLRequest::Delegate { … };
DomainReliabilityUploader::DomainReliabilityUploader() { … }
DomainReliabilityUploader::~DomainReliabilityUploader() { … }
std::unique_ptr<DomainReliabilityUploader> DomainReliabilityUploader::Create(
MockableTime* time,
net::URLRequestContext* url_request_context) { … }
int DomainReliabilityUploader::GetURLRequestUploadDepth(
const net::URLRequest& request) { … }
}