#include "third_party/blink/renderer/platform/loader/fetch/resource_request_utils.h"
#include "base/feature_list.h"
#include "base/trace_event/common/trace_event_common.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_client_settings_object.h"
#include "third_party/blink/renderer/platform/loader/fetch/memory_cache.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/weborigin/referrer.h"
#include "third_party/blink/renderer/platform/weborigin/security_policy.h"
namespace blink {
namespace {
ReportingDisposition CalculateReportingDisposition(
const FetchParameters& params) { … }
}
void SetReferrer(
ResourceRequest& request,
const FetchClientSettingsObject& fetch_client_settings_object) { … }
ResourceLoadPriority AdjustPriorityWithPriorityHintAndRenderBlocking(
ResourceLoadPriority priority,
ResourceType type,
mojom::blink::FetchPriorityHint fetch_priority_hint,
RenderBlockingBehavior render_blocking_behavior) { … }
bool ShouldLoadIncremental(ResourceType type) { … }
std::optional<ResourceRequestBlockedReason> PrepareResourceRequest(
ResourceType resource_type,
const FetchClientSettingsObject& fetch_client_settings_object,
FetchParameters& params,
FetchContext& context,
WebScopedVirtualTimePauser& virtual_time_pauser,
ResourceRequestContext& resource_request_context,
const KURL& bundle_url_for_uuid_resources) { … }
void UpgradeResourceRequestForLoaderNew(
ResourceType resource_type,
FetchParameters& params,
FetchContext& context,
ResourceRequestContext& resource_request_context,
WebScopedVirtualTimePauser& virtual_time_pauser) { … }
std::optional<ResourceRequestBlockedReason>
PrepareResourceRequestForCacheAccess(
ResourceType resource_type,
const FetchClientSettingsObject& fetch_client_settings_object,
const KURL& bundle_url_for_uuid_resources,
ResourceRequestContext& resource_request_context,
FetchContext& context,
FetchParameters& params) { … }
}