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 <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 // Notifies that a <webview> guest WebContents has been created. | 113 // Notifies that a <webview> guest WebContents has been created. |
114 virtual void GuestWebContentsCreated(WebContents* guest_web_contents, | 114 virtual void GuestWebContentsCreated(WebContents* guest_web_contents, |
115 WebContents* embedder_web_contents) {} | 115 WebContents* embedder_web_contents) {} |
116 | 116 |
117 // Notifies that a RenderProcessHost has been created. This is called before | 117 // Notifies that a RenderProcessHost has been created. This is called before |
118 // the content layer adds its own BrowserMessageFilters, so that the | 118 // the content layer adds its own BrowserMessageFilters, so that the |
119 // embedder's IPC filters have priority. | 119 // embedder's IPC filters have priority. |
120 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} | 120 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} |
121 | 121 |
122 // Notifies that a RenderProcessHost is about to be deleted. | |
123 virtual void RenderProcessHostDeleted(RenderProcessHost* host) {} | |
124 | |
125 // Notifies that a BrowserChildProcessHost has been created. | 122 // Notifies that a BrowserChildProcessHost has been created. |
126 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} | 123 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} |
127 | 124 |
128 // Get the effective URL for the given actual URL, to allow an embedder to | 125 // Get the effective URL for the given actual URL, to allow an embedder to |
129 // group different url schemes in the same SiteInstance. | 126 // group different url schemes in the same SiteInstance. |
130 virtual GURL GetEffectiveURL(BrowserContext* browser_context, | 127 virtual GURL GetEffectiveURL(BrowserContext* browser_context, |
131 const GURL& url); | 128 const GURL& url); |
132 | 129 |
133 // Returns whether all instances of the specified effective URL should be | 130 // Returns whether all instances of the specified effective URL should be |
134 // rendered by the same process, rather than using process-per-site-instance. | 131 // rendered by the same process, rather than using process-per-site-instance. |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 // This is called on a worker thread. | 468 // This is called on a worker thread. |
472 virtual | 469 virtual |
473 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 470 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
474 const GURL& url); | 471 const GURL& url); |
475 #endif | 472 #endif |
476 }; | 473 }; |
477 | 474 |
478 } // namespace content | 475 } // namespace content |
479 | 476 |
480 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 477 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |