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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 2165523004: Force MimeHandlerView to always use BrowserPlugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing creis@'s comments Created 4 years, 3 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/browser/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index ccfb0b990d3b2ee748ae053495a6f266f796ef71..ddc8ab27a49304ce655000d77020cd807454b0f4 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -253,6 +253,11 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
void ResendEventToEmbedder(const blink::WebInputEvent& event);
+ // TODO(ekaramad): Remove this once https://crbug.com/642826 is resolved.
+ bool can_use_cross_process_frames() const {
+ return can_use_cross_process_frames_;
+ }
+
protected:
// BrowserPluginGuest is a WebContentsObserver of |web_contents| and
@@ -446,6 +451,11 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
BrowserPluginGuestDelegate* const delegate_;
+ // Whether or not this BrowserPluginGuest can use cross process frames. This
+ // means when we have --use-cross-process-frames-for-guests on, the
+ // WebContents associated with this BrowserPluginGuest has OOPIF structure.
+ bool can_use_cross_process_frames_;
+
// Weak pointer used to ask GeolocationPermissionContext about geolocation
// permission.
base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698