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

Unified Diff: content/public/common/browser_plugin_guest_mode.h

Issue 2165523004: Force MimeHandlerView to always use BrowserPlugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing lazyboy@'s and lfg@'s comments Created 4 years, 5 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/common/browser_plugin_guest_mode.h
diff --git a/content/public/common/browser_plugin_guest_mode.h b/content/public/common/browser_plugin_guest_mode.h
index c77a1e8e53744b140e6e7a6f381c4d3849888044..fd84672836fd42da897db4a961546653b7f2a6f0 100644
--- a/content/public/common/browser_plugin_guest_mode.h
+++ b/content/public/common/browser_plugin_guest_mode.h
@@ -10,12 +10,20 @@
namespace content {
+class WebContents;
+
class CONTENT_EXPORT BrowserPluginGuestMode {
public:
// Returns true if inner WebContents should be implemented in terms of cross-
// process iframes.
static bool UseCrossProcessFramesForGuests();
+ // TODO(ekaramad): Remove the following method once MimeHandlerViewGuest uses
+ // OOPIF (https://crbug.com/563285).
+ // Returns true if the given |web_contents| is implemented in terms of
+ // cross-process iframes.
+ static bool UseCrossProcessFramesForWebContents(WebContents* web_contents);
+
private:
BrowserPluginGuestMode(); // Not instantiable

Powered by Google App Engine
This is Rietveld 408576698