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

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: Rebasing... 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id) 372 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id)
373 #if defined(OS_ANDROID) 373 #if defined(OS_ANDROID)
374 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string) 374 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string)
375 #endif 375 #endif
376 IPC_STRUCT_TRAITS_END() 376 IPC_STRUCT_TRAITS_END()
377 377
378 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) 378 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
379 IPC_STRUCT_TRAITS_MEMBER(origin) 379 IPC_STRUCT_TRAITS_MEMBER(origin)
380 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) 380 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
381 IPC_STRUCT_TRAITS_MEMBER(name) 381 IPC_STRUCT_TRAITS_MEMBER(name)
382 IPC_STRUCT_TRAITS_MEMBER(unique_name)
382 IPC_STRUCT_TRAITS_MEMBER(scope) 383 IPC_STRUCT_TRAITS_MEMBER(scope)
383 IPC_STRUCT_TRAITS_MEMBER(should_enforce_strict_mixed_content_checking) 384 IPC_STRUCT_TRAITS_MEMBER(should_enforce_strict_mixed_content_checking)
384 IPC_STRUCT_TRAITS_END() 385 IPC_STRUCT_TRAITS_END()
385 386
386 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) 387 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams)
387 // Gives the routing ID for the RenderWidget that will be attached to the 388 // Gives the routing ID for the RenderWidget that will be attached to the
388 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this 389 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this
389 // is MSG_ROUTING_NONE and the other parameters are not read. 390 // is MSG_ROUTING_NONE and the other parameters are not read.
390 IPC_STRUCT_MEMBER(int, routing_id) 391 IPC_STRUCT_MEMBER(int, routing_id)
391 392
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 // to perform hittesting on the browser process. 513 // to perform hittesting on the browser process.
513 IPC_STRUCT_BEGIN(FrameHostMsg_HittestData_Params) 514 IPC_STRUCT_BEGIN(FrameHostMsg_HittestData_Params)
514 // |surface_id| represents the surface used by this remote frame. 515 // |surface_id| represents the surface used by this remote frame.
515 IPC_STRUCT_MEMBER(cc::SurfaceId, surface_id) 516 IPC_STRUCT_MEMBER(cc::SurfaceId, surface_id)
516 517
517 // If |ignored_for_hittest| then this surface should be ignored during 518 // If |ignored_for_hittest| then this surface should be ignored during
518 // hittesting. 519 // hittesting.
519 IPC_STRUCT_MEMBER(bool, ignored_for_hittest) 520 IPC_STRUCT_MEMBER(bool, ignored_for_hittest)
520 IPC_STRUCT_END() 521 IPC_STRUCT_END()
521 522
523 IPC_STRUCT_BEGIN(FrameHostMsg_CreateChildFrame_Params)
524 IPC_STRUCT_MEMBER(int32_t, parent_routing_id)
525 IPC_STRUCT_MEMBER(blink::WebTreeScopeType, scope)
526 IPC_STRUCT_MEMBER(std::string, frame_name)
527 IPC_STRUCT_MEMBER(std::string, frame_unique_name)
528 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags)
529 IPC_STRUCT_MEMBER(blink::WebFrameOwnerProperties, frame_owner_properties)
530 IPC_STRUCT_END()
531
522 #if defined(OS_MACOSX) || defined(OS_ANDROID) 532 #if defined(OS_MACOSX) || defined(OS_ANDROID)
523 // This message is used for supporting popup menus on Mac OS X and Android using 533 // This message is used for supporting popup menus on Mac OS X and Android using
524 // native controls. See the FrameHostMsg_ShowPopup message. 534 // native controls. See the FrameHostMsg_ShowPopup message.
525 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) 535 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params)
526 // Position on the screen. 536 // Position on the screen.
527 IPC_STRUCT_MEMBER(gfx::Rect, bounds) 537 IPC_STRUCT_MEMBER(gfx::Rect, bounds)
528 538
529 // The height of each item in the menu. 539 // The height of each item in the menu.
530 IPC_STRUCT_MEMBER(int, item_height) 540 IPC_STRUCT_MEMBER(int, item_height)
531 541
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 AccessibilityMode) 748 AccessibilityMode)
739 749
740 // Dispatch a load event in the iframe element containing this frame. 750 // Dispatch a load event in the iframe element containing this frame.
741 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) 751 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad)
742 752
743 // Notifies the frame that its parent has changed the frame's sandbox flags. 753 // Notifies the frame that its parent has changed the frame's sandbox flags.
744 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, blink::WebSandboxFlags) 754 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, blink::WebSandboxFlags)
745 755
746 // Update a proxy's window.name property. Used when the frame's name is 756 // Update a proxy's window.name property. Used when the frame's name is
747 // changed in another process. 757 // changed in another process.
748 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */) 758 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateName,
759 std::string /* name */,
760 std::string /* unique_name */)
749 761
750 // Update a proxy's replicated enforcement of strict mixed content 762 // Update a proxy's replicated enforcement of strict mixed content
751 // checking. Used when the frame's mixed content setting is changed in 763 // checking. Used when the frame's mixed content setting is changed in
752 // another process. 764 // another process.
753 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceStrictMixedContentChecking, 765 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceStrictMixedContentChecking,
754 bool /* should enforce */) 766 bool /* should enforce */)
755 767
756 // Update a proxy's replicated origin. Used when the frame is navigated to a 768 // Update a proxy's replicated origin. Used when the frame is navigated to a
757 // new origin. 769 // new origin.
758 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */) 770 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */)
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, 878 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole,
867 int32_t, /* log level */ 879 int32_t, /* log level */
868 base::string16, /* msg */ 880 base::string16, /* msg */
869 int32_t, /* line number */ 881 int32_t, /* line number */
870 base::string16 /* source id */) 882 base::string16 /* source id */)
871 883
872 // Sent by the renderer when a child frame is created in the renderer. 884 // Sent by the renderer when a child frame is created in the renderer.
873 // 885 //
874 // Each of these messages will have a corresponding FrameHostMsg_Detach message 886 // Each of these messages will have a corresponding FrameHostMsg_Detach message
875 // sent when the frame is detached from the DOM. 887 // sent when the frame is detached from the DOM.
876 IPC_SYNC_MESSAGE_CONTROL5_1( 888 IPC_SYNC_MESSAGE_CONTROL1_1(FrameHostMsg_CreateChildFrame,
877 FrameHostMsg_CreateChildFrame, 889 FrameHostMsg_CreateChildFrame_Params,
878 int32_t /* parent_routing_id */, 890 int32_t /* new_routing_id */)
879 blink::WebTreeScopeType /* scope */,
880 std::string /* frame_name */,
881 blink::WebSandboxFlags /* sandbox flags */,
882 blink::WebFrameOwnerProperties /* frame_owner_properties */,
883 int32_t /* new_routing_id */)
884 891
885 // Sent by the renderer to the parent RenderFrameHost when a child frame is 892 // Sent by the renderer to the parent RenderFrameHost when a child frame is
886 // detached from the DOM. 893 // detached from the DOM.
887 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach) 894 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach)
888 895
889 // Indicates the renderer process is gone. This actually is sent by the 896 // Indicates the renderer process is gone. This actually is sent by the
890 // browser process to itself, but keeps the interface cleaner. 897 // browser process to itself, but keeps the interface cleaner.
891 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone, 898 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone,
892 int, /* this really is base::TerminationStatus */ 899 int, /* this really is base::TerminationStatus */
893 int /* exit_code */) 900 int /* exit_code */)
(...skipping 31 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/frame_replication_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698