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

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

Issue 2417693002: Allow MimeHandlerViewGuest be embedded inside OOPIFs (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 24acd5b7e0cfb6e5bf9662fa8906051b078b577e..a32205c031356b9ae30420a8431e91ccee778265 100644
--- a/content/public/browser/browser_plugin_guest_delegate.h
+++ b/content/public/browser/browser_plugin_guest_delegate.h
@@ -17,6 +17,8 @@ class Size;
namespace content {
class GuestHost;
+class RenderWidgetHost;
+class SiteInstance;
// Objects implement this interface to get notified about changes in the guest
// WebContents and to provide necessary functionality.
@@ -93,6 +95,16 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate {
// a BrowserPlugin even when we are using cross process frames for guests. It
// should be removed after resolving https://crbug.com/642826).
virtual bool CanUseCrossProcessFrames();
+
+ // Returns the RenderWidgetHost corresponding to the owner frame.
+ virtual RenderWidgetHost* GetOwnerRenderWidgetHost();
+
+ // The site instance of the owner frame.
+ virtual SiteInstance* GetOwnerSiteInstance();
+
+ // Returns true if the corresponding guest is allowed to be embedded inside an
+ // <iframe> which is cross process.
+ virtual bool CanBeEmbeddedInsideCrossProcessFrames();
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698