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

Unified Diff: content/common/view_messages.h

Issue 8760024: Cross-process postMessage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Current checkpoint Created 9 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 | « content/common/swapped_out_messages.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index cc7bf74e03190e346bf1a5cca8e487e9ff08c5df..c0e3c889d6e9b3895231a5bda16e84915777048d 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -569,6 +569,9 @@ IPC_STRUCT_BEGIN(ViewMsg_SwapOut_Params)
// cross-site transition. This is *not* a route_id, but the request that we
// will resume once the ACK from the closing view has been received.
IPC_STRUCT_MEMBER(int, new_request_id)
+
+ // The identifier of the ContentFrame we are becoming a proxy for.
+ IPC_STRUCT_MEMBER(int64, content_frame_id)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params)
@@ -637,12 +640,27 @@ IPC_STRUCT_BEGIN(ViewMsg_New_Params)
// The name of the frame associated with this view (or empty if none).
IPC_STRUCT_MEMBER(string16, frame_name)
+ // The route ID of the opener RenderView if we need to set one
+ // (MSG_ROUTING_NONE otherwise)
+ IPC_STRUCT_MEMBER(int, opener_route_id)
+
// The initial page ID to use for this view, which must be larger than any
// existing navigation that might be loaded in the view. Page IDs are unique
// to a view and are only updated by the renderer after this initial value.
IPC_STRUCT_MEMBER(int32, next_page_id)
IPC_STRUCT_END()
+IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params)
+ // The serialized script value
+ IPC_STRUCT_MEMBER(string16, data)
+
+ // The source origin
+ IPC_STRUCT_MEMBER(string16, source_origin)
+
+ // The target origin
+ IPC_STRUCT_MEMBER(string16, target_origin)
+IPC_STRUCT_END()
+
// Messages sent from the browser to the renderer.
// Sent to the RenderView when a new tab is swapped into an existing
@@ -1968,3 +1986,11 @@ IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse)
// whenever the mouse is unlocked (which may or may not be caused by
// ViewHostMsg_UnlockMouse).
IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
+
+IPC_MESSAGE_CONTROL2(ViewHostMsg_SendPostMessage,
+ int64 /* browsing_process_frame_id */,
+ ViewMsg_PostMessage_Params)
+
+IPC_MESSAGE_ROUTED2(ViewMsg_PostMessage,
+ int64 /* frame_id */,
+ ViewMsg_PostMessage_Params)
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698