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

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

Issue 2745363004: PlzNavigate: send SourceLocation when mixed content is found (Closed)
Patch Set: Created 3 years, 9 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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 IPC_STRUCT_TRAITS_MEMBER(title) 593 IPC_STRUCT_TRAITS_MEMBER(title)
594 IPC_STRUCT_TRAITS_MEMBER(default_file_name) 594 IPC_STRUCT_TRAITS_MEMBER(default_file_name)
595 IPC_STRUCT_TRAITS_MEMBER(accept_types) 595 IPC_STRUCT_TRAITS_MEMBER(accept_types)
596 IPC_STRUCT_TRAITS_MEMBER(need_local_path) 596 IPC_STRUCT_TRAITS_MEMBER(need_local_path)
597 #if defined(OS_ANDROID) 597 #if defined(OS_ANDROID)
598 IPC_STRUCT_TRAITS_MEMBER(capture) 598 IPC_STRUCT_TRAITS_MEMBER(capture)
599 #endif 599 #endif
600 IPC_STRUCT_TRAITS_MEMBER(requestor) 600 IPC_STRUCT_TRAITS_MEMBER(requestor)
601 IPC_STRUCT_TRAITS_END() 601 IPC_STRUCT_TRAITS_END()
602 602
603 IPC_STRUCT_BEGIN(FrameMsg_MixedContentFound_Params)
604 IPC_STRUCT_MEMBER(GURL, main_resource_url)
605 IPC_STRUCT_MEMBER(GURL, mixed_content_url)
606 IPC_STRUCT_MEMBER(content::RequestContextType, request_context_type)
607 IPC_STRUCT_MEMBER(bool, was_allowed)
608 IPC_STRUCT_MEMBER(bool, had_redirect)
609 IPC_STRUCT_MEMBER(content::SourceLocation, source_location)
610 IPC_STRUCT_END()
611
603 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) 612 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
604 // This message is used for supporting popup menus on Mac OS X and Android using 613 // This message is used for supporting popup menus on Mac OS X and Android using
605 // native controls. See the FrameHostMsg_ShowPopup message. 614 // native controls. See the FrameHostMsg_ShowPopup message.
606 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) 615 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params)
607 // Position on the screen. 616 // Position on the screen.
608 IPC_STRUCT_MEMBER(gfx::Rect, bounds) 617 IPC_STRUCT_MEMBER(gfx::Rect, bounds)
609 618
610 // The height of each item in the menu. 619 // The height of each item in the menu.
611 IPC_STRUCT_MEMBER(int, item_height) 620 IPC_STRUCT_MEMBER(int, item_height)
612 621
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 992
984 // Updates the renderer with a list of unique blink::UseCounter::Feature values 993 // Updates the renderer with a list of unique blink::UseCounter::Feature values
985 // representing Blink features used, performed or encountered by the browser 994 // representing Blink features used, performed or encountered by the browser
986 // during the current page load happening on the frame. 995 // during the current page load happening on the frame.
987 IPC_MESSAGE_ROUTED1(FrameMsg_BlinkFeatureUsageReport, 996 IPC_MESSAGE_ROUTED1(FrameMsg_BlinkFeatureUsageReport,
988 std::set<int>) /* features */ 997 std::set<int>) /* features */
989 998
990 // Informs the renderer that mixed content was found by the browser. The 999 // Informs the renderer that mixed content was found by the browser. The
991 // included data is used for instance to report to the CSP policy and to log to 1000 // included data is used for instance to report to the CSP policy and to log to
992 // the frame console. 1001 // the frame console.
993 IPC_MESSAGE_ROUTED5(FrameMsg_MixedContentFound, 1002 IPC_MESSAGE_ROUTED1(FrameMsg_MixedContentFound,
994 GURL, /* main_resource_url */ 1003 FrameMsg_MixedContentFound_Params)
995 GURL, /* mixed_content_url */
996 content::RequestContextType, /* request_context_type */
997 bool, /* was_allowed */
998 bool) /* had_redirect */
999 1004
1000 // ----------------------------------------------------------------------------- 1005 // -----------------------------------------------------------------------------
1001 // Messages sent from the renderer to the browser. 1006 // Messages sent from the renderer to the browser.
1002 1007
1003 // Blink and JavaScript error messages to log to the console 1008 // Blink and JavaScript error messages to log to the console
1004 // or debugger UI. 1009 // or debugger UI.
1005 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidAddMessageToConsole, 1010 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidAddMessageToConsole,
1006 int32_t, /* log level */ 1011 int32_t, /* log level */
1007 base::string16, /* msg */ 1012 base::string16, /* msg */
1008 int32_t, /* line number */ 1013 int32_t, /* line number */
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 int /* nfr_request_id */, 1624 int /* nfr_request_id */,
1620 float /* distance */) 1625 float /* distance */)
1621 1626
1622 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) 1627 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder)
1623 #endif 1628 #endif
1624 1629
1625 // Adding a new message? Stick to the sort order above: first platform 1630 // Adding a new message? Stick to the sort order above: first platform
1626 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1631 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1627 // platform independent FrameHostMsg, then ifdefs for platform specific 1632 // platform independent FrameHostMsg, then ifdefs for platform specific
1628 // FrameHostMsg. 1633 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698