| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // If content creates the WebContentsView implementation, it will ask the | 104 // If content creates the WebContentsView implementation, it will ask the |
| 105 // embedder to return an (optional) delegate to customize it. The view will | 105 // embedder to return an (optional) delegate to customize it. The view will |
| 106 // own the delegate. | 106 // own the delegate. |
| 107 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 107 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
| 108 WebContents* web_contents); | 108 WebContents* web_contents); |
| 109 | 109 |
| 110 // Notifies that a new RenderHostView has been created. | 110 // Notifies that a new RenderHostView has been created. |
| 111 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) {} | 111 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) {} |
| 112 | 112 |
| 113 // Notifies that a <webview> guest WebContents has been created. |
| 114 virtual void GuestWebContentsCreated(WebContents* guest_web_contents, |
| 115 WebContents* embedder_web_contents) {} |
| 116 |
| 113 // Notifies that a RenderProcessHost has been created. This is called before | 117 // Notifies that a RenderProcessHost has been created. This is called before |
| 114 // the content layer adds its own BrowserMessageFilters, so that the | 118 // the content layer adds its own BrowserMessageFilters, so that the |
| 115 // embedder's IPC filters have priority. | 119 // embedder's IPC filters have priority. |
| 116 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} | 120 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} |
| 117 | 121 |
| 118 // Notifies that a BrowserChildProcessHost has been created. | 122 // Notifies that a BrowserChildProcessHost has been created. |
| 119 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} | 123 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} |
| 120 | 124 |
| 121 // Gets the WebUIControllerFactory which will be responsible for generating | 125 // Gets the WebUIControllerFactory which will be responsible for generating |
| 122 // WebUIs. Can return NULL if the embedder doesn't need WebUI support. | 126 // WebUIs. Can return NULL if the embedder doesn't need WebUI support. |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 // This is called on a worker thread. | 472 // This is called on a worker thread. |
| 469 virtual | 473 virtual |
| 470 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 474 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 471 const GURL& url); | 475 const GURL& url); |
| 472 #endif | 476 #endif |
| 473 }; | 477 }; |
| 474 | 478 |
| 475 } // namespace content | 479 } // namespace content |
| 476 | 480 |
| 477 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 481 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |