#include "third_party/blink/renderer/core/dom/document_init.h"
#include "base/uuid.h"
#include "services/metrics/public/cpp/ukm_source_id.h"
#include "third_party/blink/public/common/tokens/tokens.h"
#include "third_party/blink/public/mojom/security_context/insecure_request_policy.mojom-blink.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/dom_implementation.h"
#include "third_party/blink/renderer/core/dom/sink_document.h"
#include "third_party/blink/renderer/core/dom/xml_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/settings.h"
#include "third_party/blink/renderer/core/html/html_document.h"
#include "third_party/blink/renderer/core/html/html_frame_owner_element.h"
#include "third_party/blink/renderer/core/html/html_view_source_document.h"
#include "third_party/blink/renderer/core/html/image_document.h"
#include "third_party/blink/renderer/core/html/json_document.h"
#include "third_party/blink/renderer/core/html/media/html_media_element.h"
#include "third_party/blink/renderer/core/html/media/media_document.h"
#include "third_party/blink/renderer/core/html/plugin_document.h"
#include "third_party/blink/renderer/core/html/text_document.h"
#include "third_party/blink/renderer/core/loader/document_loader.h"
#include "third_party/blink/renderer/core/page/chrome_client.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/core/page/plugin_data.h"
#include "third_party/blink/renderer/platform/network/mime/content_type.h"
#include "third_party/blink/renderer/platform/network/mime/mime_type_registry.h"
#include "third_party/blink/renderer/platform/network/network_utils.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
namespace blink {
DocumentInit DocumentInit::Create() { … }
DocumentInit::DocumentInit(const DocumentInit&) = default;
DocumentInit::~DocumentInit() = default;
DocumentInit& DocumentInit::ForTest(ExecutionContext& execution_context) { … }
bool DocumentInit::ShouldSetURL() const { … }
bool DocumentInit::IsSrcdocDocument() const { … }
bool DocumentInit::IsAboutBlankDocument() const { … }
const KURL& DocumentInit::FallbackBaseURL() const { … }
DocumentInit& DocumentInit::WithWindow(LocalDOMWindow* window,
Document* owner_document) { … }
DocumentInit& DocumentInit::WithAgent(Agent& agent) { … }
Agent& DocumentInit::GetAgent() const { … }
DocumentInit& DocumentInit::WithToken(const DocumentToken& token) { … }
const std::optional<DocumentToken>& DocumentInit::GetToken() const { … }
DocumentInit& DocumentInit::ForInitialEmptyDocument(bool empty) { … }
DocumentInit& DocumentInit::ForPrerendering(bool is_prerendering) { … }
DocumentInit::Type DocumentInit::ComputeDocumentType(
LocalFrame* frame,
const String& mime_type,
bool* is_for_external_handler) { … }
PluginData* DocumentInit::GetPluginData(LocalFrame* frame) { … }
DocumentInit& DocumentInit::WithTypeFrom(const String& mime_type) { … }
DocumentInit& DocumentInit::WithExecutionContext(
ExecutionContext* execution_context) { … }
DocumentInit& DocumentInit::WithURL(const KURL& url) { … }
const KURL& DocumentInit::GetCookieUrl() const { … }
DocumentInit& DocumentInit::WithSrcdocDocument(bool is_srcdoc_document) { … }
DocumentInit& DocumentInit::WithFallbackBaseURL(const KURL& fallback_base_url) { … }
DocumentInit& DocumentInit::WithJavascriptURL(bool is_for_javascript_url) { … }
DocumentInit& DocumentInit::ForDiscard(bool is_for_discard) { … }
DocumentInit& DocumentInit::WithUkmSourceId(ukm::SourceId ukm_source_id) { … }
DocumentInit& DocumentInit::WithBaseAuctionNonce(
base::Uuid base_auction_nonce) { … }
Document* DocumentInit::CreateDocument() const { … }
}