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

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: Fix Android build Created 6 years, 7 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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/browser_plugin_guest_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7bd836b6969ac9b5936a3537957373e8214813ab..6df0ef19a5f22e5ac6b21792d7c1fb7a29787c16 100644
--- a/content/public/browser/browser_plugin_guest_delegate.h
+++ b/content/public/browser/browser_plugin_guest_delegate.h
@@ -21,6 +21,7 @@ namespace content {
class JavaScriptDialogManager;
struct ContextMenuParams;
struct NativeWebKeyboardEvent;
+class WebContents;
// Objects implement this interface to get notified about changes in the guest
// WebContents and to provide necessary functionality.
@@ -41,6 +42,11 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate {
// Notification that the embedder has completed attachment.
virtual void DidAttach() {}
+ // Returns the opener for this guest.
+ // TODO(fsamuel): Remove this once the New Window API is migrated outside of
+ // the content layer.
+ 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.
@@ -99,6 +105,12 @@ 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.
+ // TODO(fsamuel): Remove this once the New Window API is migrated outside of
+ // the content layer.
+ 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) {}
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/browser_plugin_guest_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698