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

Unified Diff: content/public/browser/content_browser_client.h

Issue 2499313002: Don't split off NTP subframes with TDI. (Closed)
Patch Set: updates Created 4 years, 1 month 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
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index d69468a0c9ae77c6eb3a088c5c851fb1cd6ad704..ae3cf72a35fa61348dca28aaaa72c70aaf63ce69 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -242,6 +242,14 @@ class CONTENT_EXPORT ContentBrowserClient {
bool* is_renderer_initiated,
content::Referrer* referrer) {}
+ // Allows the embedder to override top document isolation for specific frames.
+ // |url| is the URL being loaded in the subframe, and |parent_site_instance|
+ // is the SiteInstance of the parent frame. Called only for subframes and only
+ // when top document isolation mode is enabled.
+ virtual bool ShouldFrameShareParentSiteInstanceDespiteTopDocumentIsolation(
+ const GURL& url,
+ SiteInstance* parent_site_instance);
+
// Returns whether a new view for a given |site_url| can be launched in a
// given |process_host|.
virtual bool IsSuitableHost(RenderProcessHost* process_host,
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698