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

Unified Diff: content/common/view_messages.h

Issue 1046933005: Refactor postMessage for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Charlie's nits Created 5 years, 8 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
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/renderer/render_frame_impl.h » ('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 8525e9493c8beaddc27ec67702d3fdf2b3a7fc80..61135d5263aea3ed2d15b56be78fd4c98a223412 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -536,29 +536,6 @@ IPC_STRUCT_BEGIN(ViewMsg_New_Params)
IPC_STRUCT_MEMBER(gfx::Size, max_size)
IPC_STRUCT_END()
-IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params)
- // Whether the data format is supplied as serialized script value, or as
- // a simple string. If it is a raw string, must be converted from string to a
- // WebSerializedScriptValue in renderer.
- IPC_STRUCT_MEMBER(bool, is_data_raw_string)
- // The serialized script value.
- IPC_STRUCT_MEMBER(base::string16, data)
- // When sent to the browser, this is the routing ID of the source frame in
- // the source process. The browser replaces it with the routing ID of the
- // equivalent (swapped out) frame in the destination process.
- IPC_STRUCT_MEMBER(int, source_routing_id)
-
- // The origin of the source frame.
- IPC_STRUCT_MEMBER(base::string16, source_origin)
-
- // The origin for the message's target.
- IPC_STRUCT_MEMBER(base::string16, target_origin)
-
- // Information about the MessagePorts this message contains.
- IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports)
- IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids)
-IPC_STRUCT_END()
-
// Messages sent from the browser to the renderer.
#if defined(OS_ANDROID)
@@ -712,10 +689,6 @@ IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt,
gfx::Point, /* location */
blink::WebPluginAction)
-// Posts a message from a frame in another process to the current renderer.
-IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent,
- ViewMsg_PostMessage_Params)
-
// Resets the page scale for the current main frame to the default page scale.
IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale)
@@ -1287,11 +1260,6 @@ IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset,
// renderer, instructing it to close.
IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent)
-// Sent to the browser from an inactive renderer to post a message to the
-// active renderer.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_RouteMessageEvent,
- ViewMsg_PostMessage_Params)
-
// Notifies that the preferred size of the content changed.
IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange,
gfx::Size /* pref_size */)
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698