source: webkit/trunk/Source/WebCore/loader/FrameLoadRequest.h

Last change on this file was 293563, checked in by Chris Dumez, 3 years ago

Prepare more of the code base for making the AtomString(const String&) constructor explicit
https://bugs.webkit.org/show_bug.cgi?id=239711

Reviewed by Darin Adler.

Prepare more of the code base for making the AtomString(const String&) constructor explicit.
This helps us find cases where we atomize unnecessarily or not early enough, thus causing
unnecessary String allocations.

  • Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:

(WebKit::NetworkResourceLoader::didReceiveResponse):

  • Source/WebKit/NetworkProcess/ServiceWorker/ServiceWorkerFetchTask.cpp:

(WebKit::ServiceWorkerFetchTask::processResponse):

  • Source/WebKit/WebProcess/WebPage/WebPage.cpp:

(WebKit::dumpHistoryItem):

  • Source/WTF/wtf/text/StringImpl.h:
  • Source/WebCore/Modules/fetch/FetchResponse.cpp:

(WebCore::FetchResponse::create):

  • Source/WebCore/Modules/highlight/HighlightRegister.cpp:

(WebCore::HighlightRegister::setFromMapLike):
(WebCore::HighlightRegister::remove):

  • Source/WebCore/Modules/highlight/HighlightRegister.h:

(WebCore::HighlightRegister::map const):

  • Source/WebCore/Modules/highlight/HighlightRegister.idl:
  • Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.idl:
  • Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.idl:
  • Source/WebCore/Modules/mediastream/RTCDataChannel.idl:
  • Source/WebCore/Modules/mediastream/RTCDataChannelEvent.idl:
  • Source/WebCore/Modules/pictureinpicture/PictureInPictureEvent.idl:
  • Source/WebCore/Modules/push-api/PushEvent.idl:
  • Source/WebCore/Modules/push-api/PushSubscriptionChangeEvent.idl:
  • Source/WebCore/Modules/speech/SpeechSynthesisErrorEvent.idl:
  • Source/WebCore/Modules/webaudio/AudioProcessingEvent.idl:
  • Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.idl:
  • Source/WebCore/Modules/websockets/WebSocketHandshake.cpp:

(WebCore::WebSocketHandshake::readServerHandshake):
(WebCore::WebSocketHandshake::readStatusLine):

  • Source/WebCore/Modules/websockets/WebSocketHandshake.h:
  • Source/WebCore/animation/AnimationPlaybackEvent.idl:
  • Source/WebCore/css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::customPropertyValue):
(WebCore::ComputedStyleExtractor::customPropertyText):

  • Source/WebCore/css/CSSComputedStyleDeclaration.h:
  • Source/WebCore/css/CSSVariableReferenceValue.cpp:

(WebCore::resolveVariableReference):

  • Source/WebCore/css/ContainerQueryParser.cpp:

(WebCore::ContainerQueryParser::consumeFilteredContainerQuery):
(WebCore::consumeFeatureName):

  • Source/WebCore/css/parser/CSSParserImpl.cpp:

(WebCore::CSSParserImpl::consumeFontPaletteValuesRule):
(WebCore::CSSParserImpl::consumeKeyframesRule):

  • Source/WebCore/css/parser/CSSParserSelector.cpp:

(WebCore::CSSParserSelector::parsePseudoElementSelector):
(WebCore::CSSParserSelector::parsePseudoClassSelector):

  • Source/WebCore/css/typedom/CSSStyleValue.cpp:

(WebCore::CSSStyleValue::parse):
(WebCore::CSSStyleValue::parseAll):

  • Source/WebCore/css/typedom/CSSStyleValue.h:
  • Source/WebCore/css/typedom/CSSStyleValue.idl:
  • Source/WebCore/css/typedom/CSSStyleValueFactory.cpp:

(WebCore::CSSStyleValueFactory::extractCustomCSSValues):
(WebCore::CSSStyleValueFactory::parseStyleValue):

  • Source/WebCore/css/typedom/CSSStyleValueFactory.h:
  • Source/WebCore/css/typedom/ComputedStylePropertyMapReadOnly.cpp:

(WebCore::ComputedStylePropertyMapReadOnly::get const):
(WebCore::ComputedStylePropertyMapReadOnly::getAll const):
(WebCore::ComputedStylePropertyMapReadOnly::has const):

  • Source/WebCore/css/typedom/ComputedStylePropertyMapReadOnly.h:
  • Source/WebCore/css/typedom/StylePropertyMapReadOnly.h:
  • Source/WebCore/css/typedom/StylePropertyMapReadOnly.idl:
  • Source/WebCore/dom/AnimationEvent.idl:
  • Source/WebCore/dom/Document.cpp:

(WebCore::Document::setContentLanguage):
(WebCore::Document::processMetaHttpEquiv):

  • Source/WebCore/dom/Document.h:

(WebCore::Document::contentLanguage const):
(WebCore::Document::baseTarget const):

  • Source/WebCore/dom/Element.h:

(WebCore::Element::target const):

  • Source/WebCore/dom/KeyboardEvent.cpp:

(WebCore::KeyboardEvent::KeyboardEvent):
(WebCore::KeyboardEvent::initKeyboardEvent):

  • Source/WebCore/dom/KeyboardEvent.h:
  • Source/WebCore/dom/KeyboardEvent.idl:
  • Source/WebCore/dom/PointerEvent.cpp:

(WebCore::PointerEvent::create):

  • Source/WebCore/dom/PointerEvent.h:
  • Source/WebCore/dom/PopStateEvent.idl:
  • Source/WebCore/dom/ScriptElement.cpp:

(WebCore::ScriptElement::requestModuleScript):

  • Source/WebCore/dom/StyledElement.cpp:
  • Source/WebCore/history/HistoryItem.cpp:

(WebCore::HistoryItem::reset):
(WebCore::HistoryItem::target const):
(WebCore::HistoryItem::setTarget):
(WebCore::HistoryItem::childItemWithTarget):

  • Source/WebCore/history/HistoryItem.h:
  • Source/WebCore/html/Autofill.cpp:

(WebCore::AutofillData::createFromHTMLFormControlElement):

  • Source/WebCore/html/BaseButtonInputType.cpp:

(WebCore::BaseButtonInputType::setValue):

  • Source/WebCore/html/BaseCheckableInputType.cpp:

(WebCore::BaseCheckableInputType::setValue):

  • Source/WebCore/html/BaseDateAndTimeInputType.cpp:

(WebCore::BaseDateAndTimeInputType::setupDateTimeChooserParameters):

  • Source/WebCore/html/CustomPaintImage.cpp:

(WebCore::extractComputedProperty):
(WebCore::CustomPaintImage::doCustomPaint):

  • Source/WebCore/html/CustomPaintImage.h:
  • Source/WebCore/html/HTMLAnchorElement.cpp:

(WebCore::HTMLAnchorElement::target const):
(WebCore::HTMLAnchorElement::effectiveTarget const):

  • Source/WebCore/html/HTMLAnchorElement.h:
  • Source/WebCore/html/HTMLAreaElement.cpp:

(WebCore::HTMLAreaElement::target const):

  • Source/WebCore/html/HTMLAreaElement.h:
  • Source/WebCore/html/HTMLBaseElement.cpp:

(WebCore::HTMLBaseElement::target const):

  • Source/WebCore/html/HTMLBaseElement.h:
  • Source/WebCore/html/HTMLFormElement.cpp:

(WebCore::HTMLFormElement::target const):
(WebCore::HTMLFormElement::effectiveTarget const):

  • Source/WebCore/html/HTMLFormElement.h:
  • Source/WebCore/html/HTMLHtmlElement.idl:
  • Source/WebCore/html/HTMLIFrameElement.idl:
  • Source/WebCore/html/HTMLImageElement.idl:
  • Source/WebCore/html/HTMLLinkElement.cpp:

(WebCore::HTMLLinkElement::target const):

  • Source/WebCore/html/HTMLLinkElement.h:
  • Source/WebCore/html/track/AudioTrack.idl:
  • Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp:
  • Source/WebCore/loader/CrossOriginPreflightChecker.cpp:

(WebCore::CrossOriginPreflightChecker::startPreflight):

  • Source/WebCore/loader/DocumentThreadableLoader.cpp:

(WebCore::DocumentThreadableLoader::loadRequest):

  • Source/WebCore/loader/FormSubmission.cpp:

(WebCore::FormSubmission::FormSubmission):

  • Source/WebCore/loader/FormSubmission.h:

(WebCore::FormSubmission::Attributes::target const):
(WebCore::FormSubmission::Attributes::setTarget):
(WebCore::FormSubmission::target const):

  • Source/WebCore/loader/FrameLoadRequest.cpp:

(WebCore::FrameLoadRequest::FrameLoadRequest):

  • Source/WebCore/loader/FrameLoadRequest.h:

(WebCore::FrameLoadRequest::FrameLoadRequest):
(WebCore::FrameLoadRequest::frameName const):
(WebCore::FrameLoadRequest::setFrameName):

  • Source/WebCore/loader/FrameLoader.cpp:

(WebCore::FrameLoader::changeLocation):
(WebCore::extractContentLanguageFromHeader):
(WebCore::FrameLoader::didBeginDocument):
(WebCore::FrameLoader::loadURL):
(WebCore::FrameLoader::loadPostRequest):
(WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):

  • Source/WebCore/loader/FrameLoader.h:
  • Source/WebCore/loader/HistoryController.cpp:

(WebCore::FrameLoader::HistoryController::recursiveGoToItem):

  • Source/WebCore/loader/LinkLoader.cpp:

(WebCore::LinkLoader::preloadIfNeeded):

  • Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp:

(WebCore::ApplicationCacheStorage::shouldStoreResourceAsFlatFile):

  • Source/WebCore/page/DOMWindow.cpp:

(WebCore::DOMWindow::name const):
(WebCore::DOMWindow::setName):

  • Source/WebCore/page/DOMWindow.h:
  • Source/WebCore/page/DOMWindow.idl:
  • Source/WebCore/page/DragController.cpp:

(WebCore::documentFragmentFromDragData):

  • Source/WebCore/page/ModalContainerObserver.h:

(WebCore::ModalContainerObserver::overrideSearchTermForTesting):

  • Source/WebCore/page/Navigator.cpp:

(WebCore::Navigator::initializePluginAndMimeTypeArrays):

  • Source/WebCore/page/PageSerializer.cpp:

(WebCore::PageSerializer::SerializerMarkupAccumulator::appendCustomAttributes):

  • Source/WebCore/page/Quirks.cpp:

(WebCore::Quirks::triggerOptionalStorageAccessQuirk const):

  • Source/WebCore/platform/graphics/FontCache.cpp:

(WebCore::FontCache::cachedFontPlatformData):

  • Source/WebCore/platform/graphics/FontDescription.cpp:

(WebCore::computeSpecializedChineseLocale):

  • Source/WebCore/platform/graphics/MediaPlayer.cpp:

(WebCore::MediaPlayer::load):
(WebCore::MediaPlayer::supportsType):

  • Source/WebCore/platform/graphics/cocoa/FontDescriptionCocoa.cpp:

(WebCore::FontDescription::platformResolveGenericFamily):

  • Source/WebCore/platform/graphics/filters/FilterOperation.cpp:

(WebCore::ReferenceFilterOperation::ReferenceFilterOperation):

  • Source/WebCore/platform/graphics/filters/FilterOperation.h:

(WebCore::ReferenceFilterOperation::create):
(WebCore::ReferenceFilterOperation::fragment const):

  • Source/WebCore/platform/mediastream/cocoa/DisplayCaptureSourceCocoa.cpp:

(WebCore::DisplayCaptureSourceCocoa::settings):

  • Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp:

(WebCore::CoreAudioCaptureSource::capabilities):
(WebCore::CoreAudioCaptureSource::settings):

  • Source/WebCore/platform/mock/MockRealtimeAudioSource.cpp:

(WebCore::MockRealtimeAudioSource::settings):
(WebCore::MockRealtimeAudioSource::capabilities):

  • Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp:

(WebCore::MockRealtimeVideoSource::capabilities):
(WebCore::MockRealtimeVideoSource::settings):

  • Source/WebCore/platform/mock/mediasource/MockSourceBufferPrivate.cpp:
  • Source/WebCore/platform/network/ResourceHandle.cpp:

(WebCore::ResourceHandle::create):
(WebCore::ResourceHandle::loadResourceSynchronously):

  • Source/WebCore/platform/network/ResourceResponseBase.cpp:

(WebCore::ResourceResponseBase::crossThreadData const):
(WebCore::ResourceResponseBase::fromCrossThreadData):
(WebCore::ResourceResponseBase::mimeType const):
(WebCore::ResourceResponseBase::setMimeType):
(WebCore::ResourceResponseBase::textEncodingName const):
(WebCore::ResourceResponseBase::setTextEncodingName):
(WebCore::ResourceResponseBase::httpVersion const):
(WebCore::ResourceResponseBase::setHTTPVersion):

  • Source/WebCore/platform/network/ResourceResponseBase.h:
  • Source/WebCore/plugins/DOMMimeType.cpp:

(WebCore::DOMMimeType::type const):

  • Source/WebCore/plugins/DOMMimeType.h:
  • Source/WebCore/plugins/DOMPlugin.cpp:

(WebCore::DOMPlugin::supportedPropertyNames const):

  • Source/WebCore/plugins/DOMPluginArray.cpp:

(WebCore::DOMPluginArray::supportedPropertyNames const):

  • Source/WebCore/plugins/PluginData.h:
  • Source/WebCore/rendering/MarkedText.h:
  • Source/WebCore/rendering/PathOperation.cpp:

(WebCore::ReferencePathOperation::create):
(WebCore::ReferencePathOperation::ReferencePathOperation):

  • Source/WebCore/rendering/PathOperation.h:
  • Source/WebCore/rendering/style/RenderStyle.cpp:

(WebCore::RenderStyle::addCustomPaintWatchProperty):

  • Source/WebCore/rendering/style/RenderStyle.h:
  • Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp:

(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):

  • Source/WebCore/rendering/style/StyleRareNonInheritedData.h:
  • Source/WebCore/style/RuleSetBuilder.cpp:

(WebCore::Style::RuleSetBuilder::pushCascadeLayer):

  • Source/WebCore/style/StyleBuilder.cpp:

(WebCore::Style::Builder::applyCustomProperty):

  • Source/WebCore/style/StyleBuilder.h:
  • Source/WebCore/style/StyleBuilderConverter.h:

(WebCore::Style::BuilderConverter::convertPathOperation):

  • Source/WebCore/style/StyleBuilderCustom.h:

(WebCore::Style::BuilderCustom::applyValueListStyleType):
(WebCore::Style::BuilderCustom::applyValueWebkitLocale):
(WebCore::Style::BuilderCustom::applyValueFontFamily):
(WebCore::Style::BuilderCustom::applyValueTextEmphasisStyle):
(WebCore::Style::BuilderCustom::applyValueCounter):
(WebCore::Style::BuilderCustom::applyValueAlt):

  • Source/WebCore/style/StyleBuilderState.cpp:

(WebCore::Style::BuilderState::createFilterOperations):

  • Source/WebCore/svg/SVGAElement.cpp:

(WebCore::SVGAElement::defaultEventHandler):

  • Source/WebCore/svg/SVGAElement.h:
  • Source/WebCore/svg/SVGElement.cpp:

(WebCore::SVGElement::synchronizeAttribute):
(WebCore::SVGElement::synchronizeAllAttributes):
(WebCore::SVGElement::commitPropertyChange):
(WebCore::SVGElement::insertedIntoAncestor):
(WebCore::SVGElement::buildPendingResourcesIfNeeded):

  • Source/WebCore/svg/SVGElement.h:

(WebCore::SVGElement::className const):

  • Source/WebCore/svg/SVGURIReference.cpp:

(WebCore::SVGURIReference::fragmentIdentifierFromIRIString):
(WebCore::SVGURIReference::targetElementFromIRIString):

  • Source/WebCore/svg/SVGURIReference.h:
  • Source/WebCore/svg/SVGUseElement.cpp:

(WebCore::SVGUseElement::updateUserAgentShadowTree):
(WebCore::SVGUseElement::findTarget const):

  • Source/WebCore/svg/SVGUseElement.h:
  • Source/WebCore/svg/animation/SVGSMILElement.cpp:

(WebCore::SVGSMILElement::Condition::Condition):
(WebCore::SVGSMILElement::buildPendingResource):
(WebCore::SVGSMILElement::parseCondition):

  • Source/WebCore/svg/animation/SVGSMILElement.h:
  • Source/WebCore/svg/graphics/filters/SVGFilterBuilder.cpp:

(WebCore::SVGFilterBuilder::calculateFilterOutsets):

  • Source/WebCore/testing/Internals.cpp:

(WebCore::Internals::overrideModalContainerSearchTermForTesting):

  • Source/WebCore/testing/Internals.h:
  • Source/WebCore/testing/Internals.idl:
  • Source/WebCore/worklets/PaintWorkletGlobalScope.cpp:

(WebCore::PaintWorkletGlobalScope::PaintDefinition::PaintDefinition):
(WebCore::PaintWorkletGlobalScope::registerPaint):

  • Source/WebCore/worklets/PaintWorkletGlobalScope.h:
  • Source/WebCore/worklets/PaintWorkletGlobalScope.idl:
  • Source/WebCore/xml/CustomXPathNSResolver.cpp:

(WebCore::CustomXPathNSResolver::lookupNamespaceURI):

  • Source/WebCore/xml/XPathGrammar.cpp:
  • Source/WebCore/xml/XPathParser.cpp:

(WebCore::XPath::Parser::expandQualifiedName):

  • Source/WebCore/xml/XPathParser.h:

Canonical link: https://commits.webkit.org/250077@main

  • Property svn:eol-style set to native
File size: 6.8 KB
Line 
1/*
2 * Copyright (C) 2003-2017 Apple Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#pragma once
27
28#include "FrameLoaderTypes.h"
29#include "ReferrerPolicy.h"
30#include "ResourceRequest.h"
31#include "ShouldTreatAsContinuingLoad.h"
32#include "SubstituteData.h"
33#include <wtf/Forward.h>
34
35namespace WebCore {
36
37class Document;
38class Frame;
39class SecurityOrigin;
40
41class FrameLoadRequest {
42public:
43 WEBCORE_EXPORT FrameLoadRequest(Document&, SecurityOrigin&, ResourceRequest&&, const AtomString& frameName, InitiatedByMainFrame, const AtomString& downloadAttribute = { }, const SystemPreviewInfo& = { });
44 WEBCORE_EXPORT FrameLoadRequest(Frame&, const ResourceRequest&, const SubstituteData& = SubstituteData());
45
46 WEBCORE_EXPORT ~FrameLoadRequest();
47
48 WEBCORE_EXPORT FrameLoadRequest(FrameLoadRequest&&);
49 WEBCORE_EXPORT FrameLoadRequest& operator=(FrameLoadRequest&&);
50
51 bool isEmpty() const { return m_resourceRequest.isEmpty(); }
52
53 Document& requester();
54 const SecurityOrigin& requesterSecurityOrigin() const;
55
56 ResourceRequest& resourceRequest() { return m_resourceRequest; }
57 const ResourceRequest& resourceRequest() const { return m_resourceRequest; }
58
59 const AtomString& frameName() const { return m_frameName; }
60 void setFrameName(const AtomString& frameName) { m_frameName = frameName; }
61
62 void setShouldCheckNewWindowPolicy(bool checkPolicy) { m_shouldCheckNewWindowPolicy = checkPolicy; }
63 bool shouldCheckNewWindowPolicy() const { return m_shouldCheckNewWindowPolicy; }
64
65 void setShouldTreatAsContinuingLoad(ShouldTreatAsContinuingLoad shouldTreatAsContinuingLoad) { m_shouldTreatAsContinuingLoad = shouldTreatAsContinuingLoad; }
66 ShouldTreatAsContinuingLoad shouldTreatAsContinuingLoad() const { return m_shouldTreatAsContinuingLoad; }
67
68 const SubstituteData& substituteData() const { return m_substituteData; }
69 void setSubstituteData(const SubstituteData& data) { m_substituteData = data; }
70 bool hasSubstituteData() { return m_substituteData.isValid(); }
71
72 LockHistory lockHistory() const { return m_lockHistory; }
73 void setLockHistory(LockHistory value) { m_lockHistory = value; }
74
75 LockBackForwardList lockBackForwardList() const { return m_lockBackForwardList; }
76 void setLockBackForwardList(LockBackForwardList value) { m_lockBackForwardList = value; }
77
78 const String& clientRedirectSourceForHistory() const { return m_clientRedirectSourceForHistory; }
79 void setClientRedirectSourceForHistory(const String& clientRedirectSourceForHistory) { m_clientRedirectSourceForHistory = clientRedirectSourceForHistory; }
80
81 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; }
82 void setReferrerPolicy(const ReferrerPolicy& referrerPolicy) { m_referrerPolicy = referrerPolicy; }
83
84 AllowNavigationToInvalidURL allowNavigationToInvalidURL() const { return m_allowNavigationToInvalidURL; }
85 void disableNavigationToInvalidURL() { m_allowNavigationToInvalidURL = AllowNavigationToInvalidURL::No; }
86
87 NewFrameOpenerPolicy newFrameOpenerPolicy() const { return m_newFrameOpenerPolicy; }
88 void setNewFrameOpenerPolicy(NewFrameOpenerPolicy newFrameOpenerPolicy) { m_newFrameOpenerPolicy = newFrameOpenerPolicy; }
89
90 // The shouldReplaceDocumentIfJavaScriptURL parameter will go away when the FIXME to eliminate the
91 // corresponding parameter from ScriptController::executeIfJavaScriptURL() is addressed.
92 ShouldReplaceDocumentIfJavaScriptURL shouldReplaceDocumentIfJavaScriptURL() const { return m_shouldReplaceDocumentIfJavaScriptURL; }
93 void disableShouldReplaceDocumentIfJavaScriptURL() { m_shouldReplaceDocumentIfJavaScriptURL = DoNotReplaceDocumentIfJavaScriptURL; }
94
95 void setShouldOpenExternalURLsPolicy(ShouldOpenExternalURLsPolicy policy) { m_shouldOpenExternalURLsPolicy = policy; }
96 ShouldOpenExternalURLsPolicy shouldOpenExternalURLsPolicy() const { return m_shouldOpenExternalURLsPolicy; }
97
98 const AtomString& downloadAttribute() const { return m_downloadAttribute; }
99
100 InitiatedByMainFrame initiatedByMainFrame() const { return m_initiatedByMainFrame; }
101
102 bool isSystemPreview() const { return m_systemPreviewInfo.isPreview; }
103 const SystemPreviewInfo& systemPreviewInfo() const { return m_systemPreviewInfo; }
104
105 void setIsRequestFromClientOrUserInput() { m_isRequestFromClientOrUserInput = true; }
106 bool isRequestFromClientOrUserInput() const { return m_isRequestFromClientOrUserInput; }
107
108private:
109 Ref<Document> m_requester;
110 Ref<SecurityOrigin> m_requesterSecurityOrigin;
111 ResourceRequest m_resourceRequest;
112 AtomString m_frameName;
113 SubstituteData m_substituteData;
114 String m_clientRedirectSourceForHistory;
115
116 bool m_shouldCheckNewWindowPolicy { false };
117 ShouldTreatAsContinuingLoad m_shouldTreatAsContinuingLoad { ShouldTreatAsContinuingLoad::No };
118 LockHistory m_lockHistory { LockHistory::No };
119 LockBackForwardList m_lockBackForwardList { LockBackForwardList::No };
120 ReferrerPolicy m_referrerPolicy { ReferrerPolicy::EmptyString };
121 AllowNavigationToInvalidURL m_allowNavigationToInvalidURL { AllowNavigationToInvalidURL::Yes };
122 NewFrameOpenerPolicy m_newFrameOpenerPolicy { NewFrameOpenerPolicy::Allow };
123 ShouldReplaceDocumentIfJavaScriptURL m_shouldReplaceDocumentIfJavaScriptURL { ReplaceDocumentIfJavaScriptURL };
124 ShouldOpenExternalURLsPolicy m_shouldOpenExternalURLsPolicy { ShouldOpenExternalURLsPolicy::ShouldNotAllow };
125 AtomString m_downloadAttribute;
126 InitiatedByMainFrame m_initiatedByMainFrame { InitiatedByMainFrame::Unknown };
127 SystemPreviewInfo m_systemPreviewInfo;
128 bool m_isRequestFromClientOrUserInput { false };
129};
130
131} // namespace WebCore
Note: See TracBrowser for help on using the repository browser.