| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // the delegate in the content embedder that will service the guest in the | 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|. | 153 // content layer. The content layer takes ownership of the |guest_delegate|. |
| 154 virtual void GuestWebContentsCreated( | 154 virtual void GuestWebContentsCreated( |
| 155 int guest_instance_id, | 155 int guest_instance_id, |
| 156 SiteInstance* guest_site_instance, | 156 SiteInstance* guest_site_instance, |
| 157 WebContents* guest_web_contents, | 157 WebContents* guest_web_contents, |
| 158 WebContents* opener_web_contents, | 158 WebContents* opener_web_contents, |
| 159 BrowserPluginGuestDelegate** guest_delegate, | 159 BrowserPluginGuestDelegate** guest_delegate, |
| 160 scoped_ptr<base::DictionaryValue> extra_params) {} | 160 scoped_ptr<base::DictionaryValue> extra_params) {} |
| 161 | 161 |
| 162 // Notifies that a guest WebContents has been attached to a BrowserPlugin. | |
| 163 // A guest is attached to a BrowserPlugin when the guest has acquired an | |
| 164 // embedder WebContents. This happens on initial navigation or when a new | |
| 165 // window is attached to a BrowserPlugin. |extra_params| are params sent | |
| 166 // from javascript. | |
| 167 virtual void GuestWebContentsAttached( | |
| 168 WebContents* guest_web_contents, | |
| 169 WebContents* embedder_web_contents, | |
| 170 const base::DictionaryValue& extra_params) {} | |
| 171 | |
| 172 // Notifies that a render process will be created. This is called before | 162 // Notifies that a render process will be created. This is called before |
| 173 // the content layer adds its own BrowserMessageFilters, so that the | 163 // the content layer adds its own BrowserMessageFilters, so that the |
| 174 // embedder's IPC filters have priority. | 164 // embedder's IPC filters have priority. |
| 175 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} | 165 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} |
| 176 | 166 |
| 177 // Notifies that a BrowserChildProcessHost has been created. | 167 // Notifies that a BrowserChildProcessHost has been created. |
| 178 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} | 168 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} |
| 179 | 169 |
| 180 // Get the effective URL for the given actual URL, to allow an embedder to | 170 // Get the effective URL for the given actual URL, to allow an embedder to |
| 181 // group different url schemes in the same SiteInstance. | 171 // group different url schemes in the same SiteInstance. |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 630 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 641 // implementation. Return NULL to disable external surface video. | 631 // implementation. Return NULL to disable external surface video. |
| 642 virtual ExternalVideoSurfaceContainer* | 632 virtual ExternalVideoSurfaceContainer* |
| 643 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 633 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 644 #endif | 634 #endif |
| 645 }; | 635 }; |
| 646 | 636 |
| 647 } // namespace content | 637 } // namespace content |
| 648 | 638 |
| 649 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 639 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |