Chromium Code Reviews| 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..a643cb764e00b411ab9dea9fd22c71030f678302 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 |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* site_instance); |
|
ncarter (slow)
2016/11/15 21:42:35
WDYT about renaming |site_instance| -> |parent_sit
Avi (use Gerrit)
2016/11/16 20:12:11
Done.
|
| + |
| // Returns whether a new view for a given |site_url| can be launched in a |
| // given |process_host|. |
| virtual bool IsSuitableHost(RenderProcessHost* process_host, |