Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 WebContents* embedder_web_contents) {} | 135 WebContents* embedder_web_contents) {} |
| 136 | 136 |
| 137 // Notifies that a RenderProcessHost has been created. This is called before | 137 // Notifies that a RenderProcessHost has been created. This is called before |
| 138 // the content layer adds its own BrowserMessageFilters, so that the | 138 // the content layer adds its own BrowserMessageFilters, so that the |
| 139 // embedder's IPC filters have priority. | 139 // embedder's IPC filters have priority. |
| 140 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} | 140 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} |
| 141 | 141 |
| 142 // Notifies that a BrowserChildProcessHost has been created. | 142 // Notifies that a BrowserChildProcessHost has been created. |
| 143 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} | 143 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} |
| 144 | 144 |
| 145 // Returns a privileged site version of the given URL if allowed. When | |
| 146 // transitioning across SiteInstances during navigation, the "site" of the | |
| 147 // SiteInstance may be determine by navigation properties such as | |
| 148 // "is_renderer_initiated" etc. Since SiteInstance does not take into account | |
| 149 // such factors, this calls allows clients to rewrite the URL so that their | |
| 150 // sites embedd this info. | |
|
Charlie Reis
2013/05/01 01:17:54
This comment is the most important thing to get ri
Shishir
2013/05/01 07:56:14
Done.
| |
| 151 virtual GURL GetPossiblyPrivilegedURL( | |
| 152 content::BrowserContext* browser_context, | |
| 153 const GURL& url, | |
| 154 bool is_renderer_initiated, | |
| 155 SiteInstance* curr_instance); | |
|
Charlie Reis
2013/05/01 01:17:54
nit: current_instance
(Since this is a public API
Shishir
2013/05/01 07:56:14
Done.
| |
| 156 | |
| 145 // Get the effective URL for the given actual URL, to allow an embedder to | 157 // Get the effective URL for the given actual URL, to allow an embedder to |
| 146 // group different url schemes in the same SiteInstance. | 158 // group different url schemes in the same SiteInstance. |
| 147 virtual GURL GetEffectiveURL(BrowserContext* browser_context, | 159 virtual GURL GetEffectiveURL(BrowserContext* browser_context, |
| 148 const GURL& url); | 160 const GURL& url); |
| 149 | 161 |
| 150 // Returns whether all instances of the specified effective URL should be | 162 // Returns whether all instances of the specified effective URL should be |
| 151 // rendered by the same process, rather than using process-per-site-instance. | 163 // rendered by the same process, rather than using process-per-site-instance. |
| 152 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 164 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
| 153 const GURL& effective_url); | 165 const GURL& effective_url); |
| 154 | 166 |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 532 // This is called on a worker thread. | 544 // This is called on a worker thread. |
| 533 virtual | 545 virtual |
| 534 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 546 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 535 const GURL& url); | 547 const GURL& url); |
| 536 #endif | 548 #endif |
| 537 }; | 549 }; |
| 538 | 550 |
| 539 } // namespace content | 551 } // namespace content |
| 540 | 552 |
| 541 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 553 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |