| 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..9d98a45876843cf9da543216585d3e88501f6113 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_guest.h
|
| +++ b/content/browser/browser_plugin/browser_plugin_guest.h
|
| @@ -32,6 +32,7 @@
|
| #include "content/common/edit_command.h"
|
| #include "content/common/input/input_event_ack_state.h"
|
| #include "content/public/browser/browser_plugin_guest_delegate.h"
|
| +#include "content/public/browser/browser_plugin_guest_delegate_mode.h"
|
| #include "content/public/browser/guest_host.h"
|
| #include "content/public/browser/readback_types.h"
|
| #include "content/public/browser/web_contents_observer.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();
|
|
|
| bool focused() const { return focused_; }
|
| bool visible() const { return guest_visible_; }
|
| @@ -253,6 +255,13 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
|
|
|
| void ResendEventToEmbedder(const blink::WebInputEvent& event);
|
|
|
| + // TODO(ekaramad): This is used in forcing MimeHandlerView use BrowserPlugin
|
| + // even when --use-cross-process-frames-for-guests is used. Remove this once
|
| + // MimeHandlerView uses OOPIF (https://crbug.com/563285).
|
| + BrowserPluginGuestDelegateMode::DelegateMode delegate_mode() const {
|
| + return delegate_mode_;
|
| + }
|
| +
|
| protected:
|
|
|
| // BrowserPluginGuest is a WebContentsObserver of |web_contents| and
|
| @@ -446,6 +455,8 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
|
|
|
| BrowserPluginGuestDelegate* const delegate_;
|
|
|
| + BrowserPluginGuestDelegateMode::DelegateMode delegate_mode_;
|
| +
|
| // Weak pointer used to ask GeolocationPermissionContext about geolocation
|
| // permission.
|
| base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
|
|
|