#include "content/browser/preloading/prerender/prerender_new_tab_handle.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "content/browser/preloading/preloading_attempt_impl.h"
#include "content/browser/preloading/preloading_data_impl.h"
#include "content/browser/preloading/prerender/prerender_host.h"
#include "content/browser/preloading/prerender/prerender_host_registry.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/frame.mojom.h"
#include "content/public/browser/web_contents_delegate.h"
namespace content {
PrerenderNewTabHandle::PrerenderNewTabHandle(
const PrerenderAttributes& attributes,
BrowserContext& browser_context)
: … { … }
PrerenderNewTabHandle::~PrerenderNewTabHandle() { … }
int PrerenderNewTabHandle::StartPrerendering(
const PreloadingPredictor& creating_predictor,
const PreloadingPredictor& enacting_predictor,
PreloadingConfidence confidence) { … }
void PrerenderNewTabHandle::CancelPrerendering(
const PrerenderCancellationReason& reason) { … }
std::unique_ptr<WebContentsImpl>
PrerenderNewTabHandle::TakeWebContentsIfAvailable(
const mojom::CreateNewWindowParams& create_new_window_params,
const WebContents::CreateParams& web_contents_create_params) { … }
PrerenderHostRegistry& PrerenderNewTabHandle::GetPrerenderHostRegistry() { … }
}