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

Side by Side Diff: content/common/view_messages.h

Issue 10827078: Support frame tree propagation between renderers in the same browsing instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved away from hardcoded strings and no static cast needed for tests. Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 // to convert them to pixels. 565 // to convert them to pixels.
566 IPC_STRUCT_MEMBER(float, scale_factor) 566 IPC_STRUCT_MEMBER(float, scale_factor)
567 IPC_STRUCT_END() 567 IPC_STRUCT_END()
568 568
569 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) 569 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params)
570 // The serialized script value. 570 // The serialized script value.
571 IPC_STRUCT_MEMBER(string16, data) 571 IPC_STRUCT_MEMBER(string16, data)
572 572
573 // When sent to the browser, this is the routing ID of the source frame in 573 // When sent to the browser, this is the routing ID of the source frame in
574 // the source process. The browser replaces it with the routing ID of the 574 // the source process. The browser replaces it with the routing ID of the
575 // equivalent (swapped out) frame in the destination process. Set to 575 // equivalent (swapped out) frame in the destination process.
576 // MSG_ROUTING_NONE if the source frame isn't supported (e.g., subframes).
577 IPC_STRUCT_MEMBER(int, source_routing_id) 576 IPC_STRUCT_MEMBER(int, source_routing_id)
577 // The identifier of the source frame in the source process.
578 IPC_STRUCT_MEMBER(int, source_frame_id)
579
580 // The full set of identifiers to uniquely descirbe the target frame. See
581 // the comment on ViewMsg_UpdateFrameTree for details.
582 IPC_STRUCT_MEMBER(int, target_process_id)
583 IPC_STRUCT_MEMBER(int, target_routing_id)
584 IPC_STRUCT_MEMBER(int, target_frame_id)
578 585
579 // The origin of the source frame. 586 // The origin of the source frame.
580 IPC_STRUCT_MEMBER(string16, source_origin) 587 IPC_STRUCT_MEMBER(string16, source_origin)
581 588
582 // The origin for the message's target. 589 // The origin for the message's target.
583 IPC_STRUCT_MEMBER(string16, target_origin) 590 IPC_STRUCT_MEMBER(string16, target_origin)
584 IPC_STRUCT_END() 591 IPC_STRUCT_END()
585 592
586 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) 593 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params)
587 // The frame ID for the failure report. 594 // The frame ID for the failure report.
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 IPC_MESSAGE_ROUTED4(ViewMsg_ScriptEvalRequest, 1038 IPC_MESSAGE_ROUTED4(ViewMsg_ScriptEvalRequest,
1032 string16, /* frame_xpath */ 1039 string16, /* frame_xpath */
1033 string16, /* jscript_url */ 1040 string16, /* jscript_url */
1034 int, /* ID */ 1041 int, /* ID */
1035 bool /* If true, result is sent back. */) 1042 bool /* If true, result is sent back. */)
1036 1043
1037 // Posts a message from a frame in another process to the current renderer. 1044 // Posts a message from a frame in another process to the current renderer.
1038 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent, 1045 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent,
1039 ViewMsg_PostMessage_Params) 1046 ViewMsg_PostMessage_Params)
1040 1047
1048 // Sends a JSON serialized frame tree to render processes along with the
1049 // process id and route id of the source renderer.
1050 //
1051 // When routing JavaScript calls across processes, the destination information
1052 // is kept in the renderer process instead of the browser process. This design
1053 // was chosen because frame ids are allocated by the renderer process. If the
1054 // browser was to keep a mapping of the frame ids across processes, it will
1055 // require an extra IPC message with the newly allocated frame ids, as a
1056 // response to this particular message.
awong 2012/08/21 19:27:28 Describe the json format here. Then in other spots
nasko 2012/08/21 22:24:13 The description was in the render view, but I've m
1057 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateFrameTree,
1058 int, /* the child process id of the active renderer */
1059 int, /* route_id of the active renderer */
1060 std::string /* json encoded frame tree */)
1061
1041 // Request for the renderer to evaluate an xpath to a frame and insert css 1062 // Request for the renderer to evaluate an xpath to a frame and insert css
1042 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on 1063 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on
1043 // allowed xpath expressions. 1064 // allowed xpath expressions.
1044 IPC_MESSAGE_ROUTED2(ViewMsg_CSSInsertRequest, 1065 IPC_MESSAGE_ROUTED2(ViewMsg_CSSInsertRequest,
1045 string16, /* frame_xpath */ 1066 string16, /* frame_xpath */
1046 std::string /* css string */) 1067 std::string /* css string */)
1047 1068
1048 // External popup menus. 1069 // External popup menus.
1049 #if defined(OS_MACOSX) 1070 #if defined(OS_MACOSX)
1050 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, 1071 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem,
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
2185 // (according to the value of is_hung). The browser can give the user the 2206 // (according to the value of is_hung). The browser can give the user the
2186 // option of killing the plugin. 2207 // option of killing the plugin.
2187 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, 2208 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung,
2188 int /* plugin_child_id */, 2209 int /* plugin_child_id */,
2189 FilePath /* path */, 2210 FilePath /* path */,
2190 bool /* is_hung */) 2211 bool /* is_hung */)
2191 2212
2192 // Screen was rotated. Dispatched to the onorientationchange javascript API. 2213 // Screen was rotated. Dispatched to the onorientationchange javascript API.
2193 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 2214 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
2194 int /* orientation */) 2215 int /* orientation */)
2216
2217 // Sends a JSON serialized frame tree from the active render process to the
2218 // browser.
2219 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameTreeUpdated,
2220 std::string /* json encoded frame tree */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698