Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1615)

Unified Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 258373002: Towards moving guest management to chrome: Introduce GuestViewManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {}

Powered by Google App Engine
This is Rietveld 408576698