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 efb036cd2060516ed45a73a1bd5c59090dcae781..7b182b5a2e9f7a8e3277871a52283c836399400a 100644 |
| --- a/content/public/browser/browser_plugin_guest_delegate.h |
| +++ b/content/public/browser/browser_plugin_guest_delegate.h |
| @@ -20,6 +20,7 @@ namespace content { |
| class JavaScriptDialogManager; |
| struct NativeWebKeyboardEvent; |
| +class WebContents; |
| // Objects implement this interface to get notified about changes in the guest |
| // WebContents and to provide necessary functionality. |
| @@ -40,6 +41,9 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate { |
| // Notification that the embedder has completed attachment. |
| virtual void DidAttach() {} |
| + // Returns the opener for this guest. |
| + virtual WebContents* GetOpener() const; |
|
jam
2014/05/02 19:09:06
hmm, does this need to be in content? i haven't tr
Fady Samuel
2014/05/02 21:28:20
Currently, the New Window API still resides in the
|
| + |
| // Informs the delegate that the guest render process is gone. |status| |
| // indicates whether the guest was killed, crashed, or was terminated |
| // gracefully. |
| @@ -98,6 +102,10 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate { |
| // Requests resolution of a potentially relative URL. |
| virtual GURL ResolveURL(const std::string& src); |
| + // Informs the delegate of the WebContents that created delegate's associated |
| + // WebContents. |
| + virtual void SetOpener(WebContents* opener) {} |
| + |
| // 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) {} |