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

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

Issue 2417693002: Allow MimeHandlerViewGuest be embedded inside OOPIFs (Closed)
Patch Set: Added a comment 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 d689b944d456033842a014c5d120e4ef7d522072..517a72ceedef9c6b07315b4d9c6b1c1053481e28 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