| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // represents a renderer that's hosted within a BrowserPlugin. Creation can | 144 // represents a renderer that's hosted within a BrowserPlugin. Creation can |
| 145 // occur an arbitrary length of time before attachment. If the new guest has | 145 // occur an arbitrary length of time before attachment. If the new guest has |
| 146 // an |opener_web_contents|, then it's a new window created by that opener. | 146 // an |opener_web_contents|, then it's a new window created by that opener. |
| 147 // If the guest was created via navigation, then |extra_params| will be | 147 // If the guest was created via navigation, then |extra_params| will be |
| 148 // non-NULL. |extra_params| are parameters passed to the BrowserPlugin object | 148 // non-NULL. |extra_params| are parameters passed to the BrowserPlugin object |
| 149 // element by the content embedder. These parameters may include the API to | 149 // element by the content embedder. These parameters may include the API to |
| 150 // enable for the given guest. |guest_delegate| is a return parameter of | 150 // enable for the given guest. |guest_delegate| is a return parameter of |
| 151 // the delegate in the content embedder that will service the guest in the | 151 // the delegate in the content embedder that will service the guest in the |
| 152 // content layer. The content layer takes ownership of the |guest_delegate|. | 152 // content layer. The content layer takes ownership of the |guest_delegate|. |
| 153 virtual void GuestWebContentsCreated( | 153 virtual void GuestWebContentsCreated( |
| 154 int guest_instance_id, |
| 154 SiteInstance* guest_site_instance, | 155 SiteInstance* guest_site_instance, |
| 155 WebContents* guest_web_contents, | 156 WebContents* guest_web_contents, |
| 156 WebContents* opener_web_contents, | 157 WebContents* opener_web_contents, |
| 157 BrowserPluginGuestDelegate** guest_delegate, | 158 BrowserPluginGuestDelegate** guest_delegate, |
| 158 scoped_ptr<base::DictionaryValue> extra_params) {} | 159 scoped_ptr<base::DictionaryValue> extra_params) {} |
| 159 | 160 |
| 160 // Notifies that a guest WebContents has been attached to a BrowserPlugin. | 161 // Notifies that a guest WebContents has been attached to a BrowserPlugin. |
| 161 // A guest is attached to a BrowserPlugin when the guest has acquired an | 162 // A guest is attached to a BrowserPlugin when the guest has acquired an |
| 162 // embedder WebContents. This happens on initial navigation or when a new | 163 // embedder WebContents. This happens on initial navigation or when a new |
| 163 // window is attached to a BrowserPlugin. |extra_params| are params sent | 164 // window is attached to a BrowserPlugin. |extra_params| are params sent |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 642 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 642 // implementation. Return NULL to disable external surface video. | 643 // implementation. Return NULL to disable external surface video. |
| 643 virtual ExternalVideoSurfaceContainer* | 644 virtual ExternalVideoSurfaceContainer* |
| 644 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 645 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 645 #endif | 646 #endif |
| 646 }; | 647 }; |
| 647 | 648 |
| 648 } // namespace content | 649 } // namespace content |
| 649 | 650 |
| 650 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 651 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |