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

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: Fixed a typo 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..4d93051ee9bad2a4637572ae7b2d96d97a9080ed 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -33,6 +33,7 @@
#include "content/common/input/input_event_ack_state.h"
#include "content/public/browser/browser_plugin_guest_delegate.h"
#include "content/public/browser/guest_host.h"
+#include "content/public/browser/guest_mode.h"
#include "content/public/browser/readback_types.h"
#include "content/public/browser/web_contents_observer.h"
#include "third_party/WebKit/public/platform/WebDragOperation.h"
@@ -156,6 +157,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
// Returns the embedder's RenderWidgetHostView if it is available.
// Returns nullptr otherwise.
RenderWidgetHostView* GetOwnerRenderWidgetHostView();
+ RenderWidgetHostView* GetTopLevelRenderWidgetHostView();
lfg 2016/09/02 18:29:40 I think we aren't using this anymore, right?
EhsanK 2016/09/02 21:01:06 Acknowledged.
bool focused() const { return focused_; }
bool visible() const { return guest_visible_; }
@@ -253,6 +255,11 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
void ResendEventToEmbedder(const blink::WebInputEvent& event);
+ // TODO(ekaramad): Remove this once https://crbug.com/642826 is resovled.
+ bool is_mime_handler_view_guest() const {
+ return is_mime_handler_view_guest_;
+ }
+
protected:
// BrowserPluginGuest is a WebContentsObserver of |web_contents| and
@@ -446,6 +453,10 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
BrowserPluginGuestDelegate* const delegate_;
+ // Whether or not this BrowserPluginGuest corresponds to a guest of tyoe
+ // MimeHandlerView.
+ bool is_mime_handler_view_guest_;
+
// Weak pointer used to ask GeolocationPermissionContext about geolocation
// permission.
base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698