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

Unified Diff: extensions/common/guest_view/extensions_guest_view_messages.h

Issue 972313002: Make <webview> use out-of-process iframe architecture. (Closed) Base URL: ssh://saopaulo.wat/mnt/dev/shared/src@testoopif2z-better-chrome
Patch Set: Rebase after swapped out changes major rework with RFP Created 5 years, 6 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: extensions/common/guest_view/extensions_guest_view_messages.h
diff --git a/extensions/common/guest_view/extensions_guest_view_messages.h b/extensions/common/guest_view/extensions_guest_view_messages.h
index 61da7fcec0a364082c954e0ef21e607d6a9afe70..1189c975c4376b5c9bc4763e223380fffe85ec9c 100644
--- a/extensions/common/guest_view/extensions_guest_view_messages.h
+++ b/extensions/common/guest_view/extensions_guest_view_messages.h
@@ -8,6 +8,7 @@
#include <string>
#include "ipc/ipc_message_macros.h"
+#include "base/values.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/ipc/gfx_param_traits.h"
@@ -23,6 +24,10 @@ IPC_MESSAGE_CONTROL1(ExtensionsGuestViewMsg_CreateMimeHandlerViewGuestACK,
IPC_MESSAGE_CONTROL1(ExtensionsGuestViewMsg_MimeHandlerViewGuestOnLoadCompleted,
int /* element_instance_id */)
+// Tells the embedder that a guest has been attached in --site-per-process mode.
+IPC_MESSAGE_CONTROL1(ExtensionsGuestViewMsg_AttachToEmbedderFrame_ACK,
+ int /* element_instance_id */)
+
// Messages sent from the renderer to the browser.
// Queries whether the RenderView of the provided |routing_id| is allowed to
@@ -45,3 +50,13 @@ IPC_MESSAGE_CONTROL3(ExtensionsGuestViewHostMsg_ResizeGuest,
int /* routing_id */,
int /* element_instance_id*/,
gfx::Size /* new_size */)
+
+// We have a RenderFrame with routing id of |embedder_local_frame_routing_id|.
+// We want this local frame to be replaced with a remote frame that points
+// to a <webview>. This message will attach the local frame to the <webview>
+// guest. The <webview> is identified by its ID: |guest_instance_id|.
+IPC_MESSAGE_CONTROL4(ExtensionsGuestViewHostMsg_AttachToEmbedderFrame,
+ int /* embedder_local_frame_routing_id */,
+ int /* element_instance_id */,
+ int /* guest_instance_id */,
+ base::DictionaryValue /* params */)

Powered by Google App Engine
This is Rietveld 408576698