Index: components/guest_view/browser/guest_view_base.h |
diff --git a/components/guest_view/browser/guest_view_base.h b/components/guest_view/browser/guest_view_base.h |
index 9d5b340d2166e0a8e7efccdacbb46ee0d31971ed..7fa68f9d1e1264a8ec942cfd7c20dbfa769e784a 100644 |
--- a/components/guest_view/browser/guest_view_base.h |
+++ b/components/guest_view/browser/guest_view_base.h |
@@ -21,6 +21,10 @@ |
struct RendererContentSettingRules; |
+namespace chrome { |
+class ChromeGuestViewMessageFilter; |
+} |
+ |
namespace guest_view { |
class GuestViewEvent; |
@@ -86,6 +90,10 @@ class GuestViewBase : public content::BrowserPluginGuestDelegate, |
// Returns the name of the derived type of this GuestView. |
virtual const char* GetViewType() const = 0; |
+ // Invoked if an IPC message is coming from a container attached to this |
+ // guest. |
+ virtual bool OnMessageReceivedFromEmbedder(const IPC::Message& message); |
+ |
// This method queries whether autosize is supported for this particular view. |
// By default, autosize is not supported. Derived classes can override this |
// behavior to support autosize. |
@@ -325,8 +333,11 @@ class GuestViewBase : public content::BrowserPluginGuestDelegate, |
void SetGuestZoomLevelToMatchEmbedder(); |
- private: |
+ protected: |
friend class GuestViewMessageFilter; |
+ // TODO(fsamuel): This is a bit of a hack. Don't make things outside this |
+ // component a friend. |
+ friend class chrome::ChromeGuestViewMessageFilter; |
class OwnerContentsObserver; |
class OpenerLifetimeObserver; |