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 5047f6450cc854910e6fc52fe56e169e9e038b59..4712410a320fc480bd60562225ef6e793cdcd8ae 100644 |
| --- a/content/public/browser/content_browser_client.h |
| +++ b/content/public/browser/content_browser_client.h |
| @@ -142,6 +142,23 @@ class CONTENT_EXPORT ContentBrowserClient { |
| // Notifies that a BrowserChildProcessHost has been created. |
| virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} |
| + |
|
Charlie Reis
2013/05/01 16:50:06
nit: Remove extra blank line.
Shishir
2013/05/01 19:11:11
Done.
|
| + // Determines whether a navigation from |current_instance| to |url| would be a |
| + // valid entry point to a "privileged site," based on whether it |
| + // |is_renderer_initiated|. A privileged site requires careful process |
| + // isolation to ensure its privileges do not leak, and it can only be entered |
| + // via known navigation paths. |
| + // |
| + // If this is a valid entry to a privileged site, this function should rewrite |
| + // the origin of |url| with a non-http(s) origin that represents the |
| + // privileged site. This will distinguish the resulting SiteInstance from |
| + // other SiteInstances in the process model. |
| + virtual GURL GetPossiblyPrivilegedURL( |
| + content::BrowserContext* browser_context, |
| + const GURL& url, |
| + bool is_renderer_initiated, |
| + SiteInstance* current_instance); |
| + |
| // Get the effective URL for the given actual URL, to allow an embedder to |
| // group different url schemes in the same SiteInstance. |
| virtual GURL GetEffectiveURL(BrowserContext* browser_context, |