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

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

Issue 1635873003: Replicating WebFrame::uniqueName across renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dump-render-tree3
Patch Set: Addressed CR feedback from Charlie. Created 4 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 interacting with frames. 5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id) 369 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id)
370 #if defined(OS_ANDROID) 370 #if defined(OS_ANDROID)
371 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string) 371 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string)
372 #endif 372 #endif
373 IPC_STRUCT_TRAITS_END() 373 IPC_STRUCT_TRAITS_END()
374 374
375 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) 375 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
376 IPC_STRUCT_TRAITS_MEMBER(origin) 376 IPC_STRUCT_TRAITS_MEMBER(origin)
377 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) 377 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
378 IPC_STRUCT_TRAITS_MEMBER(name) 378 IPC_STRUCT_TRAITS_MEMBER(name)
379 IPC_STRUCT_TRAITS_MEMBER(unique_name)
379 IPC_STRUCT_TRAITS_MEMBER(scope) 380 IPC_STRUCT_TRAITS_MEMBER(scope)
380 IPC_STRUCT_TRAITS_MEMBER(should_enforce_strict_mixed_content_checking) 381 IPC_STRUCT_TRAITS_MEMBER(should_enforce_strict_mixed_content_checking)
381 IPC_STRUCT_TRAITS_END() 382 IPC_STRUCT_TRAITS_END()
382 383
383 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) 384 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams)
384 // Gives the routing ID for the RenderWidget that will be attached to the 385 // Gives the routing ID for the RenderWidget that will be attached to the
385 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this 386 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this
386 // is MSG_ROUTING_NONE and the other parameters are not read. 387 // is MSG_ROUTING_NONE and the other parameters are not read.
387 IPC_STRUCT_MEMBER(int, routing_id) 388 IPC_STRUCT_MEMBER(int, routing_id)
388 389
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 // to perform hittesting on the browser process. 510 // to perform hittesting on the browser process.
510 IPC_STRUCT_BEGIN(FrameHostMsg_HittestData_Params) 511 IPC_STRUCT_BEGIN(FrameHostMsg_HittestData_Params)
511 // |surface_id| represents the surface used by this remote frame. 512 // |surface_id| represents the surface used by this remote frame.
512 IPC_STRUCT_MEMBER(cc::SurfaceId, surface_id) 513 IPC_STRUCT_MEMBER(cc::SurfaceId, surface_id)
513 514
514 // If |ignored_for_hittest| then this surface should be ignored during 515 // If |ignored_for_hittest| then this surface should be ignored during
515 // hittesting. 516 // hittesting.
516 IPC_STRUCT_MEMBER(bool, ignored_for_hittest) 517 IPC_STRUCT_MEMBER(bool, ignored_for_hittest)
517 IPC_STRUCT_END() 518 IPC_STRUCT_END()
518 519
520 IPC_STRUCT_BEGIN(FrameHostMsg_CreateChildFrame_Params)
521 IPC_STRUCT_MEMBER(int32_t, parent_routing_id)
522 IPC_STRUCT_MEMBER(blink::WebTreeScopeType, scope)
523 IPC_STRUCT_MEMBER(std::string, frame_name)
524 IPC_STRUCT_MEMBER(std::string, frame_unique_name)
525 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags)
526 IPC_STRUCT_MEMBER(blink::WebFrameOwnerProperties, frame_owner_properties)
527 IPC_STRUCT_END()
528
519 #if defined(OS_MACOSX) || defined(OS_ANDROID) 529 #if defined(OS_MACOSX) || defined(OS_ANDROID)
520 // This message is used for supporting popup menus on Mac OS X and Android using 530 // This message is used for supporting popup menus on Mac OS X and Android using
521 // native controls. See the FrameHostMsg_ShowPopup message. 531 // native controls. See the FrameHostMsg_ShowPopup message.
522 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) 532 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params)
523 // Position on the screen. 533 // Position on the screen.
524 IPC_STRUCT_MEMBER(gfx::Rect, bounds) 534 IPC_STRUCT_MEMBER(gfx::Rect, bounds)
525 535
526 // The height of each item in the menu. 536 // The height of each item in the menu.
527 IPC_STRUCT_MEMBER(int, item_height) 537 IPC_STRUCT_MEMBER(int, item_height)
528 538
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 AccessibilityMode) 745 AccessibilityMode)
736 746
737 // Dispatch a load event in the iframe element containing this frame. 747 // Dispatch a load event in the iframe element containing this frame.
738 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) 748 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad)
739 749
740 // Notifies the frame that its parent has changed the frame's sandbox flags. 750 // Notifies the frame that its parent has changed the frame's sandbox flags.
741 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, blink::WebSandboxFlags) 751 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, blink::WebSandboxFlags)
742 752
743 // Update a proxy's window.name property. Used when the frame's name is 753 // Update a proxy's window.name property. Used when the frame's name is
744 // changed in another process. 754 // changed in another process.
745 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */) 755 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateName,
756 std::string /* name */,
757 std::string /* unique_name */)
746 758
747 // Update a proxy's replicated enforcement of strict mixed content 759 // Update a proxy's replicated enforcement of strict mixed content
748 // checking. Used when the frame's mixed content setting is changed in 760 // checking. Used when the frame's mixed content setting is changed in
749 // another process. 761 // another process.
750 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceStrictMixedContentChecking, 762 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceStrictMixedContentChecking,
751 bool /* should enforce */) 763 bool /* should enforce */)
752 764
753 // Update a proxy's replicated origin. Used when the frame is navigated to a 765 // Update a proxy's replicated origin. Used when the frame is navigated to a
754 // new origin. 766 // new origin.
755 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */) 767 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */)
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, 875 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole,
864 int32_t, /* log level */ 876 int32_t, /* log level */
865 base::string16, /* msg */ 877 base::string16, /* msg */
866 int32_t, /* line number */ 878 int32_t, /* line number */
867 base::string16 /* source id */) 879 base::string16 /* source id */)
868 880
869 // Sent by the renderer when a child frame is created in the renderer. 881 // Sent by the renderer when a child frame is created in the renderer.
870 // 882 //
871 // Each of these messages will have a corresponding FrameHostMsg_Detach message 883 // Each of these messages will have a corresponding FrameHostMsg_Detach message
872 // sent when the frame is detached from the DOM. 884 // sent when the frame is detached from the DOM.
873 IPC_SYNC_MESSAGE_CONTROL5_1( 885 IPC_SYNC_MESSAGE_CONTROL1_1(FrameHostMsg_CreateChildFrame,
874 FrameHostMsg_CreateChildFrame, 886 FrameHostMsg_CreateChildFrame_Params,
875 int32_t /* parent_routing_id */, 887 int32_t /* new_routing_id */)
876 blink::WebTreeScopeType /* scope */,
877 std::string /* frame_name */,
878 blink::WebSandboxFlags /* sandbox flags */,
879 blink::WebFrameOwnerProperties /* frame_owner_properties */,
880 int32_t /* new_routing_id */)
881 888
882 // Sent by the renderer to the parent RenderFrameHost when a child frame is 889 // Sent by the renderer to the parent RenderFrameHost when a child frame is
883 // detached from the DOM. 890 // detached from the DOM.
884 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach) 891 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach)
885 892
886 // Indicates the renderer process is gone. This actually is sent by the 893 // Indicates the renderer process is gone. This actually is sent by the
887 // browser process to itself, but keeps the interface cleaner. 894 // browser process to itself, but keeps the interface cleaner.
888 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone, 895 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone,
889 int, /* this really is base::TerminationStatus */ 896 int, /* this really is base::TerminationStatus */
890 int /* exit_code */) 897 int /* exit_code */)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartLoading, 932 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartLoading,
926 bool /* to_different_document */) 933 bool /* to_different_document */)
927 934
928 // Sent when the renderer is done loading a page. 935 // Sent when the renderer is done loading a page.
929 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidStopLoading) 936 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidStopLoading)
930 937
931 // Notifies the browser that this frame has new session history information. 938 // Notifies the browser that this frame has new session history information.
932 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */) 939 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */)
933 940
934 // Sent when the frame changes its window.name. 941 // Sent when the frame changes its window.name.
935 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeName, std::string /* name */) 942 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName,
943 std::string /* name */,
944 std::string /* unique_name */)
936 945
937 // Sent when the frame starts enforcing strict mixed content 946 // Sent when the frame starts enforcing strict mixed content
938 // checking. Sending this information in DidCommitProvisionalLoad isn't 947 // checking. Sending this information in DidCommitProvisionalLoad isn't
939 // sufficient; this message is needed because, for example, a document 948 // sufficient; this message is needed because, for example, a document
940 // can dynamically insert a <meta> tag that causes strict mixed content 949 // can dynamically insert a <meta> tag that causes strict mixed content
941 // checking to be enforced. 950 // checking to be enforced.
942 IPC_MESSAGE_ROUTED0(FrameHostMsg_EnforceStrictMixedContentChecking) 951 IPC_MESSAGE_ROUTED0(FrameHostMsg_EnforceStrictMixedContentChecking)
943 952
944 // Sent when the renderer changed the progress of a load. 953 // Sent when the renderer changed the progress of a load.
945 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, 954 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress,
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1438 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1430 int /* version */, 1439 int /* version */,
1431 std::vector<gfx::RectF> /* rects */, 1440 std::vector<gfx::RectF> /* rects */,
1432 gfx::RectF /* active_rect */) 1441 gfx::RectF /* active_rect */)
1433 #endif 1442 #endif
1434 1443
1435 // Adding a new message? Stick to the sort order above: first platform 1444 // Adding a new message? Stick to the sort order above: first platform
1436 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1445 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1437 // platform independent FrameHostMsg, then ifdefs for platform specific 1446 // platform independent FrameHostMsg, then ifdefs for platform specific
1438 // FrameHostMsg. 1447 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698