// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_OLD_DOCUMENT_INFO_FOR_COMMIT_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_OLD_DOCUMENT_INFO_FOR_COMMIT_H_ #include "third_party/blink/public/common/frame/user_activation_state.h" #include "third_party/blink/renderer/core/dom/document.h" #include "third_party/blink/renderer/core/loader/history_item.h" namespace blink { // Contains information related to the previous document in a frame, to be // given to the next document that is going to commit in this FrameLoader. // Note that the "previous document" might not necessarily use the same // FrameLoader as this one, e.g. in case of local RenderFrame swap. struct OldDocumentInfoForCommit : GarbageCollected<OldDocumentInfoForCommit> { … }; // Owns the OldDocumentInfoForCommit and exposes it through `info_` // so that both the unloading old document and the committing new document // can access and modify the value, without explicitly passing it between // them on unload/commit time. class ScopedOldDocumentInfoForCommitCapturer { … }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_OLD_DOCUMENT_INFO_FOR_COMMIT_H_