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

Unified Diff: components/guest_view/browser/guest_view_base.h

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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: 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;
« no previous file with comments | « components/framelet/renderer/framelet_container.cc ('k') | components/guest_view/browser/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698