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

Unified Diff: components/framelet/renderer/framelet_container.h

Issue 1531533002: wjm day 2 work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « components/framelet/renderer/DEPS ('k') | components/framelet/renderer/framelet_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/framelet/renderer/framelet_container.h
diff --git a/components/framelet/renderer/framelet_container.h b/components/framelet/renderer/framelet_container.h
index b242ad84150d38f4de1fa4e9f5e573f4bcf6cc12..8397e2ac15a910ad174e3003af453427e710ecf7 100644
--- a/components/framelet/renderer/framelet_container.h
+++ b/components/framelet/renderer/framelet_container.h
@@ -7,13 +7,41 @@
#include "components/guest_view/renderer/guest_view_container.h"
+#include "third_party/WebKit/public/platform/WebURLLoader.h"
+#include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
+#include "ui/gfx/geometry/size.h"
+
namespace guest_view {
class FrameletContainer : public GuestViewContainer {
public:
explicit FrameletContainer(content::RenderFrame* render_frame);
+ // GuestViewContainer implementation.
+ bool OnMessage(const IPC::Message& message) override;
+
+ // BrowserPluginDelegate implementation.
+ void DidResizeElement(const gfx::Size& new_size) override;
+ void DidFinishLoading() override;
+
private:
+ // Message handlers.
+ void OnCreateFrameletGuestACK(int element_instance_id);
+ void OnGuestAttached(int element_instance_id,
+ int guest_proxy_routing_id);
+
+ void CreateFrameletGuest();
+
+ // The RenderView routing ID of the guest.
+ int guest_proxy_routing_id_;
+
+ // The URL to navigate to.
+ std::string url_;
+
+ gfx::Size element_size_;
+
+ bool is_embedded_;
+
DISALLOW_COPY_AND_ASSIGN(FrameletContainer);
};
« no previous file with comments | « components/framelet/renderer/DEPS ('k') | components/framelet/renderer/framelet_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698