#include "third_party/blink/renderer/core/loader/link_loader.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-shared.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/loader/fetch_priority_attribute.h"
#include "third_party/blink/renderer/core/loader/link_load_parameters.h"
#include "third_party/blink/renderer/core/loader/link_loader_client.h"
#include "third_party/blink/renderer/core/loader/pending_link_preload.h"
#include "third_party/blink/renderer/core/loader/preload_helper.h"
#include "third_party/blink/renderer/core/loader/prerender_handle.h"
#include "third_party/blink/renderer/core/loader/resource/css_style_sheet_resource.h"
#include "third_party/blink/renderer/core/loader/subresource_integrity_helper.h"
#include "third_party/blink/renderer/core/page/viewport_description.h"
#include "third_party/blink/renderer/platform/heap/prefinalizer.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_client.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_finish_observer.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_loader_options.h"
#include "third_party/blink/renderer/platform/loader/subresource_integrity.h"
namespace blink {
class WebPrescientNetworking;
namespace {
std::optional<mojom::blink::PrerenderTriggerType>
PrerenderTriggerTypeFromRelAttribute(const LinkRelAttribute& rel_attribute,
Document& document) { … }
}
LinkLoader::LinkLoader(LinkLoaderClient* client) : … { … }
void LinkLoader::NotifyFinished(Resource* resource) { … }
void LinkLoader::NotifyModuleLoadFinished(ModuleScript* module) { … }
Resource* LinkLoader::GetResourceForTesting() { … }
bool LinkLoader::LoadLink(const LinkLoadParameters& params,
Document& document) { … }
void LinkLoader::LoadStylesheet(
const LinkLoadParameters& params,
const AtomicString& local_name,
const WTF::TextEncoding& charset,
FetchParameters::DeferOption defer_option,
Document& document,
ResourceClient* link_client,
RenderBlockingBehavior render_blocking_behavior) { … }
void LinkLoader::Abort() { … }
void LinkLoader::Trace(Visitor* visitor) const { … }
}