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..dba400620ac99d75d782f6dbfe9bc3bbf0812da5 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() {} |
+ // Requests the opener for this guest. |
lazyboy
2014/05/01 20:06:59
s/Requests/Returns
Fady Samuel
2014/05/01 21:05:28
Done.
|
+ virtual WebContents* GetOpener() const; |
+ |
// 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) {} |