Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: content/browser/frame_host/render_frame_host_manager.h

Issue 1385603004: Move IsRendererTransferNeededForNavigation to RenderFrameHostManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_isolate_apps2
Patch Set: Pull in fixes from other patch Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_manager.h
diff --git a/content/browser/frame_host/render_frame_host_manager.h b/content/browser/frame_host/render_frame_host_manager.h
index 826718fe2e1d4f4a3ad6601bdd741a38ed2bad31..3a40ad73e5bc87f71b23a73a81dff4d788ad1f4c 100644
--- a/content/browser/frame_host/render_frame_host_manager.h
+++ b/content/browser/frame_host/render_frame_host_manager.h
@@ -323,6 +323,20 @@ class CONTENT_EXPORT RenderFrameHostManager {
ui::PageTransition page_transition,
bool should_replace_current_entry);
+ // Determines whether a navigation to |dest_url| may be completed using an
+ // existing RenderFrameHost, or whether transferring to a new RenderFrameHost
+ // backed by a different render process is required. This is a security policy
+ // check determined by the current site isolation mode, and must be done
+ // before the resource at |dest_url| is delivered to |existing_rfh|.
+ //
+ // |existing_rfh| must belong to this RFHM, but it can be a pending or current
+ // host.
+ //
+ // When this function returns true for a subframe, an out-of-process iframe
+ // must be created.
+ bool IsRendererTransferNeededForNavigation(RenderFrameHostImpl* existing_rfh,
+ const GURL& dest_url);
+
// Called when a renderer's frame navigates.
void DidNavigateFrame(RenderFrameHostImpl* render_frame_host,
bool was_caused_by_user_gesture);
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698