chromium/third_party/blink/renderer/core/dom/document_init.cc

/*
 * Copyright (C) 1999 Lars Knoll ([email protected])
 *           (C) 1999 Antti Koivisto ([email protected])
 *           (C) 2001 Dirk Mueller ([email protected])
 *           (C) 2006 Alexey Proskuryakov ([email protected])
 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
 * rights reserved.
 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
 * (http://www.torchmobile.com/)
 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
 * Copyright (C) 2013 Google Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 *
 */

#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 {

// static
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) {}

// static
DocumentInit::Type DocumentInit::ComputeDocumentType(
    LocalFrame* frame,
    const String& mime_type,
    bool* is_for_external_handler) {}

// static
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 {}

}  // namespace blink