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

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: Fixes based on Albert's comments and added explicit test for adding/removing frames using JavaScrip… 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. Set to
576 // MSG_ROUTING_NONE if the source frame isn't supported (e.g., subframes). 576 // MSG_ROUTING_NONE if the source frame isn't supported (e.g., subframes).
Charlie Reis 2012/08/21 01:40:39 The "e.g., subframes" part is stale now. Is there
nasko 2012/08/21 17:49:42 It is still technically possible (in code) to retu
577 IPC_STRUCT_MEMBER(int, source_routing_id) 577 IPC_STRUCT_MEMBER(int, source_routing_id)
578 IPC_STRUCT_MEMBER(int, source_frame_id)
579
580 IPC_STRUCT_MEMBER(int, remote_process_id)
Charlie Reis 2012/08/21 01:40:39 These need a comment explaining why they're here.
nasko 2012/08/21 17:49:42 Actually, I've added the description to the ViewMs
581 IPC_STRUCT_MEMBER(int, remote_routing_id)
582 IPC_STRUCT_MEMBER(int, remote_frame_id)
578 583
579 // The origin of the source frame. 584 // The origin of the source frame.
580 IPC_STRUCT_MEMBER(string16, source_origin) 585 IPC_STRUCT_MEMBER(string16, source_origin)
581 586
582 // The origin for the message's target. 587 // The origin for the message's target.
583 IPC_STRUCT_MEMBER(string16, target_origin) 588 IPC_STRUCT_MEMBER(string16, target_origin)
584 IPC_STRUCT_END() 589 IPC_STRUCT_END()
585 590
586 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) 591 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params)
587 // The frame ID for the failure report. 592 // 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, 1036 IPC_MESSAGE_ROUTED4(ViewMsg_ScriptEvalRequest,
1032 string16, /* frame_xpath */ 1037 string16, /* frame_xpath */
1033 string16, /* jscript_url */ 1038 string16, /* jscript_url */
1034 int, /* ID */ 1039 int, /* ID */
1035 bool /* If true, result is sent back. */) 1040 bool /* If true, result is sent back. */)
1036 1041
1037 // Posts a message from a frame in another process to the current renderer. 1042 // Posts a message from a frame in another process to the current renderer.
1038 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent, 1043 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent,
1039 ViewMsg_PostMessage_Params) 1044 ViewMsg_PostMessage_Params)
1040 1045
1046 // Sends a JSON serialized frame tree to render processes.
1047 IPC_MESSAGE_ROUTED3(ViewMsg_FrameTree,
Charlie Reis 2012/08/21 01:40:39 Should probably include some kind of verb to make
nasko 2012/08/21 17:49:42 Done.
1048 int, /* the child process id of the source renderer */
Charlie Reis 2012/08/21 01:40:39 Maybe say "active" instead of "source"? (I was co
nasko 2012/08/21 17:49:42 Done.
1049 int, /* route_id of the source renderer */
1050 std::string /* json encoded frame tree */)
1051
1041 // Request for the renderer to evaluate an xpath to a frame and insert css 1052 // 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 1053 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on
1043 // allowed xpath expressions. 1054 // allowed xpath expressions.
1044 IPC_MESSAGE_ROUTED2(ViewMsg_CSSInsertRequest, 1055 IPC_MESSAGE_ROUTED2(ViewMsg_CSSInsertRequest,
1045 string16, /* frame_xpath */ 1056 string16, /* frame_xpath */
1046 std::string /* css string */) 1057 std::string /* css string */)
1047 1058
1048 // External popup menus. 1059 // External popup menus.
1049 #if defined(OS_MACOSX) 1060 #if defined(OS_MACOSX)
1050 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, 1061 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 2196 // (according to the value of is_hung). The browser can give the user the
2186 // option of killing the plugin. 2197 // option of killing the plugin.
2187 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, 2198 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung,
2188 int /* plugin_child_id */, 2199 int /* plugin_child_id */,
2189 FilePath /* path */, 2200 FilePath /* path */,
2190 bool /* is_hung */) 2201 bool /* is_hung */)
2191 2202
2192 // Screen was rotated. Dispatched to the onorientationchange javascript API. 2203 // Screen was rotated. Dispatched to the onorientationchange javascript API.
2193 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 2204 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
2194 int /* orientation */) 2205 int /* orientation */)
2206
2207 // Sends a JSON serialized frame tree from the render process to the browser.
2208 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameTree,
Charlie Reis 2012/08/21 01:40:39 As above, ViewHostMsg_FrameTreeUpdated. Also, may
nasko 2012/08/21 17:49:42 Done.
2209 std::string /* json encoded frame tree */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698