Chromium Code Reviews| Index: content/public/browser/browser_plugin_guest_delegate.h |
| diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h |
| index 7abd7371a259e336dddd08b6927cb6245279cc7b..05a0efb53add4951287daf95e6f554eea3504db6 100644 |
| --- a/content/public/browser/browser_plugin_guest_delegate.h |
| +++ b/content/public/browser/browser_plugin_guest_delegate.h |
| @@ -8,6 +8,7 @@ |
| #include "base/callback_forward.h" |
| #include "base/process/kill.h" |
| #include "content/common/content_export.h" |
| +#include "content/public/browser/web_contents.h" |
| namespace base { |
| class DictionaryValue; |
| @@ -19,8 +20,6 @@ class Size; |
| namespace content { |
| -class WebContents; |
| - |
| // Objects implement this interface to get notified about changes in the guest |
| // WebContents and to provide necessary functionality. |
| class CONTENT_EXPORT BrowserPluginGuestDelegate { |
| @@ -32,9 +31,15 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate { |
| virtual void WillAttach(content::WebContents* embedder_web_contents, |
| const base::DictionaryValue& extra_params) {} |
| + virtual WebContents* CreateNewGuestWindow( |
| + const WebContents::CreateParams& create_params); |
| + |
| // Notification that the embedder has completed attachment. |
| virtual void DidAttach() {} |
| + // Requests the instance ID associated with the delegate. |
| + virtual int GetGuestInstanceID() const; |
|
jam
2014/06/20 15:58:27
i thought the instance ids in content were hidden
Fady Samuel
2014/06/20 16:09:01
No not yet. BrowserPlugin has an '-internal-attach
|
| + |
| // Notifies that the content size of the guest has changed in autosize mode. |
| virtual void SizeChanged(const gfx::Size& old_size, |
| const gfx::Size& new_size) {} |