#include "third_party/blink/renderer/platform/loader/fetch/script_fetch_options.h"
#include <utility>
#include "services/network/public/mojom/attribution.mojom-blink.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_initiator_type_names.h"
#include "third_party/blink/renderer/platform/network/http_names.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
namespace blink {
ScriptFetchOptions::ScriptFetchOptions()
: … { … }
ScriptFetchOptions::ScriptFetchOptions(
const String& nonce,
const IntegrityMetadataSet& integrity_metadata,
const String& integrity_attribute,
ParserDisposition parser_state,
network::mojom::CredentialsMode credentials_mode,
network::mojom::ReferrerPolicy referrer_policy,
mojom::blink::FetchPriorityHint fetch_priority_hint,
RenderBlockingBehavior render_blocking_behavior,
RejectCoepUnsafeNone reject_coep_unsafe_none)
: … { … }
ScriptFetchOptions::~ScriptFetchOptions() = default;
FetchParameters ScriptFetchOptions::CreateFetchParameters(
const KURL& url,
const SecurityOrigin* security_origin,
const DOMWrapperWorld* world_for_csp,
CrossOriginAttributeValue cross_origin,
const WTF::TextEncoding& encoding,
FetchParameters::DeferOption defer) const { … }
}