#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FETCH_RESOURCE_REQUEST_UTILS_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FETCH_RESOURCE_REQUEST_UTILS_H_
#include <optional>
#include "third_party/blink/public/platform/resource_request_blocked_reason.h"
#include "third_party/blink/public/platform/web_common.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_client_settings_object.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_context.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_parameters.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource.h"
namespace blink {
bool BLINK_PLATFORM_EXPORT ShouldLoadIncremental(ResourceType type);
void SetReferrer(ResourceRequest& request,
const FetchClientSettingsObject& fetch_client_settings_object);
ResourceLoadPriority BLINK_PLATFORM_EXPORT
AdjustPriorityWithPriorityHintAndRenderBlocking(
ResourceLoadPriority priority,
ResourceType type,
mojom::blink::FetchPriorityHint fetch_priority_hint,
RenderBlockingBehavior render_blocking_behavior);
class ResourceRequestContext { … };
BLINK_PLATFORM_EXPORT std::optional<ResourceRequestBlockedReason>
PrepareResourceRequestForCacheAccess(
ResourceType type,
const FetchClientSettingsObject& fetch_client_settings_object,
const KURL& bundle_url_for_uuid_resources,
ResourceRequestContext& resource_request_context,
FetchContext& context,
FetchParameters& params);
BLINK_PLATFORM_EXPORT 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);
BLINK_PLATFORM_EXPORT void UpgradeResourceRequestForLoaderNew(
ResourceType resource_type,
FetchParameters& params,
FetchContext& context,
ResourceRequestContext& resource_request_context,
WebScopedVirtualTimePauser& virtual_time_pauser);
}
#endif