#include "content/public/browser/prerender_web_contents_delegate.h"
#include "content/browser/preloading/prerender/prerender_final_status.h"
#include "content/browser/preloading/prerender/prerender_host_registry.h"
#include "content/browser/web_contents/web_contents_impl.h"
namespace content {
WebContents* PrerenderWebContentsDelegate::OpenURLFromTab(
WebContents* source,
const OpenURLParams& params,
base::OnceCallback<void(NavigationHandle&)> navigation_handle_callback) { … }
WebContents* PrerenderWebContentsDelegate::AddNewContents(
WebContents* source,
std::unique_ptr<WebContents> new_contents,
const GURL& target_url,
WindowOpenDisposition disposition,
const blink::mojom::WindowFeatures& window_features,
bool user_gesture,
bool* was_blocked) { … }
void PrerenderWebContentsDelegate::ActivateContents(WebContents* contents) { … }
void PrerenderWebContentsDelegate::LoadingStateChanged(
WebContents* source,
bool should_show_loading_ui) { … }
void PrerenderWebContentsDelegate::CloseContents(WebContents* source) { … }
bool PrerenderWebContentsDelegate::ShouldSuppressDialogs(WebContents* source) { … }
bool PrerenderWebContentsDelegate::ShouldFocusPageAfterCrash(
WebContents* source) { … }
bool PrerenderWebContentsDelegate::TakeFocus(WebContents* source,
bool reverse) { … }
void PrerenderWebContentsDelegate::WebContentsCreated(
WebContents* source_contents,
int opener_render_process_id,
int opener_render_frame_id,
const std::string& frame_name,
const GURL& target_url,
WebContents* new_contents) { … }
bool PrerenderWebContentsDelegate::CanEnterFullscreenModeForTab(
RenderFrameHost* requesting_frame) { … }
void PrerenderWebContentsDelegate::EnterFullscreenModeForTab(
RenderFrameHost* requesting_frame,
const blink::mojom::FullscreenOptions& options) { … }
void PrerenderWebContentsDelegate::FullscreenStateChangedForTab(
RenderFrameHost* requesting_frame,
const blink::mojom::FullscreenOptions& options) { … }
void PrerenderWebContentsDelegate::ExitFullscreenModeForTab(WebContents*) { … }
bool PrerenderWebContentsDelegate::IsFullscreenForTabOrPending(
const WebContents* web_contents) { … }
void PrerenderWebContentsDelegate::OnDidBlockNavigation(
WebContents* web_contents,
const GURL& blocked_url,
const GURL& initiator_url,
blink::mojom::NavigationBlockedReason reason) { … }
bool PrerenderWebContentsDelegate::ShouldAllowRunningInsecureContent(
WebContents* web_contents,
bool allowed_per_prefs,
const url::Origin& origin,
const GURL& resource_url) { … }
PreloadingEligibility PrerenderWebContentsDelegate::IsPrerender2Supported(
WebContents& web_contents) { … }
}