| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // browser_main_parts.h. | 134 // browser_main_parts.h. |
| 135 virtual BrowserMainParts* CreateBrowserMainParts( | 135 virtual BrowserMainParts* CreateBrowserMainParts( |
| 136 const MainFunctionParams& parameters); | 136 const MainFunctionParams& parameters); |
| 137 | 137 |
| 138 // If content creates the WebContentsView implementation, it will ask the | 138 // If content creates the WebContentsView implementation, it will ask the |
| 139 // embedder to return an (optional) delegate to customize it. The view will | 139 // embedder to return an (optional) delegate to customize it. The view will |
| 140 // own the delegate. | 140 // own the delegate. |
| 141 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 141 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
| 142 WebContents* web_contents); | 142 WebContents* web_contents); |
| 143 | 143 |
| 144 // Notifies that a guest WebContents has been created. A guest WebContents | |
| 145 // represents a renderer that's hosted within a BrowserPlugin. Creation can | |
| 146 // occur an arbitrary length of time before attachment. If the new guest has | |
| 147 // an |opener_web_contents|, then it's a new window created by that opener. | |
| 148 // If the guest was created via navigation, then |extra_params| will be | |
| 149 // non-NULL. |extra_params| are parameters passed to the BrowserPlugin object | |
| 150 // element by the content embedder. These parameters may include the API to | |
| 151 // enable for the given guest. |guest_delegate| is a return parameter of | |
| 152 // the delegate in the content embedder that will service the guest in the | |
| 153 // content layer. The content layer takes ownership of the |guest_delegate|. | |
| 154 virtual void GuestWebContentsCreated( | |
| 155 int guest_instance_id, | |
| 156 SiteInstance* guest_site_instance, | |
| 157 WebContents* guest_web_contents, | |
| 158 WebContents* opener_web_contents, | |
| 159 BrowserPluginGuestDelegate** guest_delegate, | |
| 160 scoped_ptr<base::DictionaryValue> extra_params) {} | |
| 161 | |
| 162 // Notifies that a render process will be created. This is called before | 144 // Notifies that a render process will be created. This is called before |
| 163 // the content layer adds its own BrowserMessageFilters, so that the | 145 // the content layer adds its own BrowserMessageFilters, so that the |
| 164 // embedder's IPC filters have priority. | 146 // embedder's IPC filters have priority. |
| 165 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} | 147 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} |
| 166 | 148 |
| 167 // Notifies that a BrowserChildProcessHost has been created. | 149 // Notifies that a BrowserChildProcessHost has been created. |
| 168 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} | 150 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} |
| 169 | 151 |
| 170 // Get the effective URL for the given actual URL, to allow an embedder to | 152 // Get the effective URL for the given actual URL, to allow an embedder to |
| 171 // group different url schemes in the same SiteInstance. | 153 // group different url schemes in the same SiteInstance. |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 645 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 664 // implementation. Return NULL to disable external surface video. | 646 // implementation. Return NULL to disable external surface video. |
| 665 virtual ExternalVideoSurfaceContainer* | 647 virtual ExternalVideoSurfaceContainer* |
| 666 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 648 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 667 #endif | 649 #endif |
| 668 }; | 650 }; |
| 669 | 651 |
| 670 } // namespace content | 652 } // namespace content |
| 671 | 653 |
| 672 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 654 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |