#include "content/renderer/navigation_state.h"
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#include "content/common/frame_messages.mojom.h"
#include "third_party/blink/public/common/navigation/navigation_params.h"
#include "third_party/blink/public/mojom/commit_result/commit_result.mojom.h"
namespace content {
NavigationState::~NavigationState() { … }
std::unique_ptr<NavigationState> NavigationState::CreateForCrossDocumentCommit(
blink::mojom::CommonNavigationParamsPtr common_params,
blink::mojom::CommitNavigationParamsPtr commit_params,
mojom::NavigationClient::CommitNavigationCallback commit_callback,
std::unique_ptr<NavigationClient> navigation_client,
bool was_initiated_in_this_frame) { … }
std::unique_ptr<NavigationState>
NavigationState::CreateForSameDocumentCommitFromBrowser(
blink::mojom::CommonNavigationParamsPtr common_params,
blink::mojom::CommitNavigationParamsPtr commit_params,
mojom::Frame::CommitSameDocumentNavigationCallback
commit_same_document_callback) { … }
std::unique_ptr<NavigationState> NavigationState::CreateForSynchronousCommit() { … }
bool NavigationState::WasWithinSameDocument() { … }
bool NavigationState::IsForSynchronousCommit() { … }
void NavigationState::RunCommitNavigationCallback(
mojom::DidCommitProvisionalLoadParamsPtr params,
mojom::DidCommitProvisionalLoadInterfaceParamsPtr interface_params) { … }
void NavigationState::RunCommitSameDocumentNavigationCallback(
blink::mojom::CommitResult commit_result) { … }
NavigationState::NavigationState(
blink::mojom::CommonNavigationParamsPtr common_params,
blink::mojom::CommitNavigationParamsPtr commit_params,
bool is_for_synchronous_commit,
mojom::NavigationClient::CommitNavigationCallback commit_callback,
std::unique_ptr<NavigationClient> navigation_client,
mojom::Frame::CommitSameDocumentNavigationCallback
commit_same_document_callback,
bool was_initiated_in_this_frame)
: … { … }
}