#include "content/browser/preloading/prerender/prerender_no_vary_search_commit_deferring_condition.h"
#include "base/memory/ptr_util.h"
#include "content/browser/preloading/prerender/prerender_host.h"
#include "content/browser/renderer_host/frame_tree.h"
#include "content/browser/renderer_host/frame_tree_node.h"
#include "content/browser/renderer_host/navigation_request.h"
#include "content/public/browser/render_frame_host.h"
#include "third_party/blink/public/common/features.h"
namespace content {
namespace {
FrameTreeNode* GetRootPrerenderFrameTreeNode(int prerender_frame_tree_node_id) { … }
}
std::unique_ptr<CommitDeferringCondition>
PrerenderNoVarySearchCommitDeferringCondition::MaybeCreate(
NavigationRequest& navigation_request,
NavigationType navigation_type,
std::optional<int> candidate_prerender_frame_tree_node_id) { … }
PrerenderNoVarySearchCommitDeferringCondition::
~PrerenderNoVarySearchCommitDeferringCondition() = default;
PrerenderNoVarySearchCommitDeferringCondition::
PrerenderNoVarySearchCommitDeferringCondition(
NavigationRequest& navigation_request,
int candidate_prerender_frame_tree_node_id)
: … { … }
CommitDeferringCondition::Result
PrerenderNoVarySearchCommitDeferringCondition::WillCommitNavigation(
base::OnceClosure resume) { … }
}