summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/loader/frame_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/loader/frame_loader.h')
-rw-r--r--chromium/third_party/blink/renderer/core/loader/frame_loader.h29
1 files changed, 8 insertions, 21 deletions
diff --git a/chromium/third_party/blink/renderer/core/loader/frame_loader.h b/chromium/third_party/blink/renderer/core/loader/frame_loader.h
index 8cae0f05369..598d75368cc 100644
--- a/chromium/third_party/blink/renderer/core/loader/frame_loader.h
+++ b/chromium/third_party/blink/renderer/core/loader/frame_loader.h
@@ -145,18 +145,11 @@ class CORE_EXPORT FrameLoader final {
void DispatchDocumentElementAvailable();
void RunScriptsAtDocumentElementAvailable();
- // The following sandbox flags will be forced, regardless of changes to the
- // sandbox attribute of any parent frames.
- void ForceSandboxFlags(network::mojom::blink::WebSandboxFlags flags);
-
- network::mojom::blink::WebSandboxFlags GetForcedSandboxFlags() const {
- return forced_sandbox_flags_;
- }
-
- // Includes the collection of forced, inherited, and FrameOwner's sandbox
- // flags. Note: with FeaturePolicyForSandbox the frame owner's sandbox flags
- // only includes the flags which are *not* implemented as feature policies
- // already present in the FrameOwner's ContainerPolicy.
+ // See content/browser/renderer_host/sandbox_flags.md
+ // This contains the sandbox flags to commit for new documents.
+ // - For main documents, it contains the sandbox inherited from the opener.
+ // - For nested documents, it contains the sandbox flags inherited from the
+ // parent and the one defined in the <iframe>'s sandbox attribute.
network::mojom::blink::WebSandboxFlags PendingEffectiveSandboxFlags() const;
// Modifying itself is done based on |fetch_client_settings_object|.
@@ -174,9 +167,6 @@ class CORE_EXPORT FrameLoader final {
Frame* Opener();
void SetOpener(LocalFrame*);
- const AtomicString& RequiredCSP() const { return required_csp_; }
- void RecordLatestRequiredCSP();
-
void Detach();
void FinishedParsing();
@@ -206,7 +196,7 @@ class CORE_EXPORT FrameLoader final {
void DispatchUnloadEvent(SecurityOrigin* committing_origin,
base::Optional<Document::UnloadEventTiming>*);
- bool AllowPlugins(ReasonForCallingAllowPlugins);
+ bool AllowPlugins();
void SaveScrollAnchor();
void SaveScrollState();
@@ -237,6 +227,8 @@ class CORE_EXPORT FrameLoader final {
static bool NeedsHistoryItemRestore(WebFrameLoadType type);
+ void WriteIntoTracedValue(perfetto::TracedValue context) const;
+
private:
bool AllowRequestForThisFrame(const FrameLoadRequest&);
WebFrameLoadType DetermineFrameLoadType(const KURL& url,
@@ -264,7 +256,6 @@ class CORE_EXPORT FrameLoader final {
void DetachDocumentLoader(Member<DocumentLoader>&,
bool flush_microtask_queue = false);
- std::unique_ptr<TracedValue> ToTracedValue() const;
void TakeObjectSnapshot() const;
// Commits the given |document_loader|.
@@ -303,8 +294,6 @@ class CORE_EXPORT FrameLoader final {
};
std::unique_ptr<ClientNavigationState> client_navigation_;
- network::mojom::blink::WebSandboxFlags forced_sandbox_flags_;
-
// The state is set to kInitialized when Init() completes, and kDetached
// during teardown in Detach().
enum class State { kUninitialized, kInitialized, kDetached };
@@ -328,8 +317,6 @@ class CORE_EXPORT FrameLoader final {
// confused by several navigations submitted in a row.
Member<ContentSecurityPolicy> last_origin_window_csp_;
- AtomicString required_csp_;
-
// The origins for which a legacy TLS version warning has been printed. The
// size of this set is capped, after which no more warnings are printed.
HashSet<String> tls_version_warning_origins_;