#include "third_party/blink/renderer/core/fetch/fetch_request_data.h"
#include "base/unguessable_token.h"
#include "net/base/request_priority.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_http_body.h"
#include "third_party/blink/public/platform/web_url_request.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/fetch/blob_bytes_consumer.h"
#include "third_party/blink/renderer/core/fetch/fetch_header_list.h"
#include "third_party/blink/renderer/core/fetch/form_data_bytes_consumer.h"
#include "third_party/blink/renderer/core/loader/threadable_loader.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/loader/fetch/bytes_consumer.h"
#include "third_party/blink/renderer/platform/loader/fetch/data_pipe_bytes_consumer.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_loader_options.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_request.h"
#include "third_party/blink/renderer/platform/network/http_names.h"
namespace {
::blink::ResourceLoadPriority ConvertRequestPriorityToResourceLoadPriority(
net::RequestPriority priority) { … }
}
namespace blink {
namespace {
bool IsExcludedHeaderForServiceWorkerFetchEvent(const String& header_name) { … }
void SignalError(Persistent<DataPipeBytesConsumer::CompletionNotifier> notifier,
uint32_t reason,
const std::string& description) { … }
void SignalSize(
std::unique_ptr<mojo::Remote<network::mojom::blink::ChunkedDataPipeGetter>>,
Persistent<DataPipeBytesConsumer::CompletionNotifier> notifier,
int32_t status,
uint64_t size) { … }
}
FetchRequestData* FetchRequestData::Create(
ScriptState* script_state,
mojom::blink::FetchAPIRequestPtr fetch_api_request,
ForServiceWorkerFetchEvent for_service_worker_fetch_event) { … }
FetchRequestData* FetchRequestData::CloneExceptBody() { … }
FetchRequestData* FetchRequestData::Clone(ScriptState* script_state,
ExceptionState& exception_state) { … }
FetchRequestData* FetchRequestData::Pass(ScriptState* script_state,
ExceptionState& exception_state) { … }
FetchRequestData::~FetchRequestData() { … }
FetchRequestData::FetchRequestData(ExecutionContext* execution_context)
: … { … }
void FetchRequestData::Trace(Visitor* visitor) const { … }
}