#include "third_party/blink/public/web/web_document.h"
#include "base/memory/scoped_refptr.h"
#include "net/storage_access_api/status.h"
#include "services/network/public/mojom/referrer_policy.mojom-blink.h"
#include "third_party/blink/public/common/loader/referrer_utils.h"
#include "third_party/blink/public/platform/web_distillability.h"
#include "third_party/blink/public/platform/web_url.h"
#include "third_party/blink/public/web/web_dom_event.h"
#include "third_party/blink/public/web/web_element.h"
#include "third_party/blink/public/web/web_element_collection.h"
#include "third_party/blink/public/web/web_form_control_element.h"
#include "third_party/blink/public/web/web_form_element.h"
#include "third_party/blink/renderer/core/css/css_selector_watch.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/css/style_sheet_contents.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/document_statistics_collector.h"
#include "third_party/blink/renderer/core/dom/document_type.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/dom/node.h"
#include "third_party/blink/renderer/core/editing/ephemeral_range.h"
#include "third_party/blink/renderer/core/editing/iterators/text_iterator.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/visual_viewport.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/html/forms/html_form_control_element.h"
#include "third_party/blink/renderer/core/html/forms/html_form_element.h"
#include "third_party/blink/renderer/core/html/html_all_collection.h"
#include "third_party/blink/renderer/core/html/html_body_element.h"
#include "third_party/blink/renderer/core/html/html_collection.h"
#include "third_party/blink/renderer/core/html/html_document.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/html/html_head_element.h"
#include "third_party/blink/renderer/core/html/html_link_element.h"
#include "third_party/blink/renderer/core/html/plugin_document.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/core/speculation_rules/document_speculation_rules.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/wtf/casting.h"
namespace {
static const blink::WebStyleSheetKey GenerateStyleSheetKey() { … }
}
namespace blink {
const DocumentToken& WebDocument::Token() const { … }
WebURL WebDocument::Url() const { … }
WebSecurityOrigin WebDocument::GetSecurityOrigin() const { … }
bool WebDocument::IsSecureContext() const { … }
WebString WebDocument::Encoding() const { … }
WebString WebDocument::ContentLanguage() const { … }
WebString WebDocument::GetReferrer() const { … }
std::optional<SkColor> WebDocument::ThemeColor() { … }
WebURL WebDocument::OpenSearchDescriptionURL() const { … }
WebLocalFrame* WebDocument::GetFrame() const { … }
bool WebDocument::IsHTMLDocument() const { … }
bool WebDocument::IsXHTMLDocument() const { … }
bool WebDocument::IsPluginDocument() const { … }
WebURL WebDocument::BaseURL() const { … }
ukm::SourceId WebDocument::GetUkmSourceId() const { … }
net::SiteForCookies WebDocument::SiteForCookies() const { … }
net::StorageAccessApiStatus WebDocument::StorageAccessApiStatus() const { … }
WebSecurityOrigin WebDocument::TopFrameOrigin() const { … }
WebElement WebDocument::DocumentElement() const { … }
WebElement WebDocument::Body() const { … }
WebElement WebDocument::Head() { … }
WebString WebDocument::Title() const { … }
WebString WebDocument::ContentAsTextForTesting() const { … }
WebElementCollection WebDocument::All() const { … }
WebVector<WebFormControlElement> WebDocument::UnassociatedFormControls() const { … }
WebVector<WebFormElement> WebDocument::Forms() const { … }
WebVector<WebFormElement> WebDocument::GetTopLevelForms() const { … }
WebURL WebDocument::CompleteURL(const WebString& partial_url) const { … }
WebElement WebDocument::GetElementById(const WebString& id) const { … }
WebElement WebDocument::FocusedElement() const { … }
WebStyleSheetKey WebDocument::InsertStyleSheet(
const WebString& source_code,
const WebStyleSheetKey* key,
WebCssOrigin origin,
BackForwardCacheAware back_forward_cache_aware) { … }
void WebDocument::RemoveInsertedStyleSheet(const WebStyleSheetKey& key,
WebCssOrigin origin) { … }
void WebDocument::WatchCSSSelectors(const WebVector<WebString>& web_selectors) { … }
WebVector<WebDraggableRegion> WebDocument::DraggableRegions() const { … }
WebDistillabilityFeatures WebDocument::DistillabilityFeatures() { … }
void WebDocument::SetShowBeforeUnloadDialog(bool show_dialog) { … }
cc::ElementId WebDocument::GetVisualViewportScrollingElementIdForTesting() { … }
bool WebDocument::IsLoaded() { … }
bool WebDocument::IsPrerendering() { … }
bool WebDocument::HasDocumentPictureInPictureWindow() const { … }
void WebDocument::AddPostPrerenderingActivationStep(
base::OnceClosure callback) { … }
void WebDocument::SetCookieManager(
CrossVariantMojoRemote<network::mojom::RestrictedCookieManagerInterfaceBase>
cookie_manager) { … }
WebDocument::WebDocument(Document* elem) : … { … }
DEFINE_WEB_NODE_TYPE_CASTS(…)
WebDocument& WebDocument::operator=(Document* elem) { … }
operator blink::Document *()
net::ReferrerPolicy WebDocument::GetReferrerPolicy() const { … }
WebString WebDocument::OutgoingReferrer() const { … }
void WebDocument::InitiatePreview(const WebURL& url) { … }
}