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

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

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: MixedContent::ContextType comes from the renderer; lessen Blink public code; fixed build. Created 3 years, 11 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 20 matching lines...) Expand all
31 #include "content/public/common/console_message_level.h" 31 #include "content/public/common/console_message_level.h"
32 #include "content/public/common/context_menu_params.h" 32 #include "content/public/common/context_menu_params.h"
33 #include "content/public/common/file_chooser_file_info.h" 33 #include "content/public/common/file_chooser_file_info.h"
34 #include "content/public/common/file_chooser_params.h" 34 #include "content/public/common/file_chooser_params.h"
35 #include "content/public/common/form_field_data.h" 35 #include "content/public/common/form_field_data.h"
36 #include "content/public/common/frame_navigate_params.h" 36 #include "content/public/common/frame_navigate_params.h"
37 #include "content/public/common/javascript_message_type.h" 37 #include "content/public/common/javascript_message_type.h"
38 #include "content/public/common/page_importance_signals.h" 38 #include "content/public/common/page_importance_signals.h"
39 #include "content/public/common/page_state.h" 39 #include "content/public/common/page_state.h"
40 #include "content/public/common/referrer.h" 40 #include "content/public/common/referrer.h"
41 #include "content/public/common/request_context_type.h"
41 #include "content/public/common/resource_response.h" 42 #include "content/public/common/resource_response.h"
42 #include "content/public/common/stop_find_action.h" 43 #include "content/public/common/stop_find_action.h"
43 #include "content/public/common/three_d_api_types.h" 44 #include "content/public/common/three_d_api_types.h"
44 #include "ipc/ipc_message_macros.h" 45 #include "ipc/ipc_message_macros.h"
45 #include "ipc/ipc_platform_file.h" 46 #include "ipc/ipc_platform_file.h"
46 #include "ppapi/features/features.h" 47 #include "ppapi/features/features.h"
47 #include "third_party/WebKit/public/platform/WebFocusType.h" 48 #include "third_party/WebKit/public/platform/WebFocusType.h"
48 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 49 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
50 #include "third_party/WebKit/public/platform/WebMixedContent.h"
49 #include "third_party/WebKit/public/web/WebFindOptions.h" 51 #include "third_party/WebKit/public/web/WebFindOptions.h"
50 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 52 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
51 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" 53 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h"
52 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 54 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
53 #include "ui/gfx/geometry/rect.h" 55 #include "ui/gfx/geometry/rect.h"
54 #include "ui/gfx/geometry/rect_f.h" 56 #include "ui/gfx/geometry/rect_f.h"
55 #include "ui/gfx/ipc/gfx_param_traits.h" 57 #include "ui/gfx/ipc/gfx_param_traits.h"
56 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 58 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
57 #include "ui/gfx/range/range.h" 59 #include "ui/gfx/range/range.h"
58 #include "url/gurl.h" 60 #include "url/gurl.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 IPC_STRUCT_TRAITS_MEMBER(method) 342 IPC_STRUCT_TRAITS_MEMBER(method)
341 IPC_STRUCT_TRAITS_MEMBER(post_data) 343 IPC_STRUCT_TRAITS_MEMBER(post_data)
342 IPC_STRUCT_TRAITS_END() 344 IPC_STRUCT_TRAITS_END()
343 345
344 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) 346 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams)
345 IPC_STRUCT_TRAITS_MEMBER(headers) 347 IPC_STRUCT_TRAITS_MEMBER(headers)
346 IPC_STRUCT_TRAITS_MEMBER(load_flags) 348 IPC_STRUCT_TRAITS_MEMBER(load_flags)
347 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) 349 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture)
348 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) 350 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker)
349 IPC_STRUCT_TRAITS_MEMBER(request_context_type) 351 IPC_STRUCT_TRAITS_MEMBER(request_context_type)
352 IPC_STRUCT_TRAITS_MEMBER(mixed_content_context_type)
350 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) 353 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url)
351 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) 354 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding)
352 IPC_STRUCT_TRAITS_MEMBER(initiator_origin) 355 IPC_STRUCT_TRAITS_MEMBER(initiator_origin)
353 IPC_STRUCT_TRAITS_END() 356 IPC_STRUCT_TRAITS_END()
354 357
355 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) 358 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams)
356 IPC_STRUCT_TRAITS_MEMBER(extra_headers) 359 IPC_STRUCT_TRAITS_MEMBER(extra_headers)
357 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) 360 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id)
358 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id) 361 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id)
359 IPC_STRUCT_TRAITS_END() 362 IPC_STRUCT_TRAITS_END()
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 // ScopedPageLoadDeferrer is on the stack for SwapOut. 918 // ScopedPageLoadDeferrer is on the stack for SwapOut.
916 IPC_MESSAGE_ROUTED0(FrameMsg_SuppressFurtherDialogs) 919 IPC_MESSAGE_ROUTED0(FrameMsg_SuppressFurtherDialogs)
917 920
918 // Tells the frame to consider itself to have received a user gesture (based 921 // Tells the frame to consider itself to have received a user gesture (based
919 // on a user gesture proceed by a descendant). 922 // on a user gesture proceed by a descendant).
920 IPC_MESSAGE_ROUTED0(FrameMsg_SetHasReceivedUserGesture) 923 IPC_MESSAGE_ROUTED0(FrameMsg_SetHasReceivedUserGesture)
921 924
922 IPC_MESSAGE_ROUTED1(FrameMsg_RunFileChooserResponse, 925 IPC_MESSAGE_ROUTED1(FrameMsg_RunFileChooserResponse,
923 std::vector<content::FileChooserFileInfo>) 926 std::vector<content::FileChooserFileInfo>)
924 927
928 // Updates the renderer with a list of unique blink::UseCounter::Feature values
929 // representing Blink features "used" (or "performed") by the browser during the
930 // current page load happening on the frame.
931 IPC_MESSAGE_ROUTED1(FrameMsg_BlinkFeatureUsageReport,
932 std::set<int>) /* features */
933
934 // Informs the renderer that mixed content was found by the browser. The
935 // included data is used for instance to report to the CSP policy and to log to
936 // the frame console.
937 IPC_MESSAGE_ROUTED5(FrameMsg_MixedContentFoundByTheBrowser,
938 GURL, /* main_resource_url */
939 GURL, /* mixed_content_url */
940 content::RequestContextType, /* request_context_type */
941 bool, /* was_allowed */
942 bool) /* had_redirect */
943
925 // ----------------------------------------------------------------------------- 944 // -----------------------------------------------------------------------------
926 // Messages sent from the renderer to the browser. 945 // Messages sent from the renderer to the browser.
927 946
928 // Blink and JavaScript error messages to log to the console 947 // Blink and JavaScript error messages to log to the console
929 // or debugger UI. 948 // or debugger UI.
930 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidAddMessageToConsole, 949 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidAddMessageToConsole,
931 int32_t, /* log level */ 950 int32_t, /* log level */
932 base::string16, /* msg */ 951 base::string16, /* msg */
933 int32_t, /* line number */ 952 int32_t, /* line number */
934 base::string16 /* source id */) 953 base::string16 /* source id */)
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 // nearest find result in the sending frame. 1548 // nearest find result in the sending frame.
1530 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1549 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1531 int /* nfr_request_id */, 1550 int /* nfr_request_id */,
1532 float /* distance */) 1551 float /* distance */)
1533 #endif 1552 #endif
1534 1553
1535 // Adding a new message? Stick to the sort order above: first platform 1554 // Adding a new message? Stick to the sort order above: first platform
1536 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1555 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1537 // platform independent FrameHostMsg, then ifdefs for platform specific 1556 // platform independent FrameHostMsg, then ifdefs for platform specific
1538 // FrameHostMsg. 1557 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698