OLD | NEW |
---|---|
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 19 matching lines...) Expand all Loading... | |
30 #include "content/public/common/common_param_traits.h" | 30 #include "content/public/common/common_param_traits.h" |
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/resource_response.h" | 41 #include "content/public/common/resource_response.h" |
41 #include "content/public/common/stop_find_action.h" | 42 #include "content/public/common/stop_find_action.h" |
42 #include "content/public/common/three_d_api_types.h" | 43 #include "content/public/common/three_d_api_types.h" |
43 #include "ipc/ipc_message_macros.h" | 44 #include "ipc/ipc_message_macros.h" |
44 #include "ipc/ipc_platform_file.h" | 45 #include "ipc/ipc_platform_file.h" |
45 #include "ppapi/features/features.h" | 46 #include "ppapi/features/features.h" |
46 #include "third_party/WebKit/public/platform/WebFocusType.h" | 47 #include "third_party/WebKit/public/platform/WebFocusType.h" |
47 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 48 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
48 #include "third_party/WebKit/public/web/WebFindOptions.h" | 49 #include "third_party/WebKit/public/web/WebFindOptions.h" |
49 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" | 50 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
417 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBodyImpl>, | 418 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBodyImpl>, |
418 resource_request_body) | 419 resource_request_body) |
419 IPC_STRUCT_MEMBER(std::string, extra_headers) | 420 IPC_STRUCT_MEMBER(std::string, extra_headers) |
420 IPC_STRUCT_MEMBER(content::Referrer, referrer) | 421 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
421 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) | 422 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
422 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) | 423 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
423 IPC_STRUCT_MEMBER(bool, user_gesture) | 424 IPC_STRUCT_MEMBER(bool, user_gesture) |
424 IPC_STRUCT_MEMBER(bool, is_history_navigation_in_new_child) | 425 IPC_STRUCT_MEMBER(bool, is_history_navigation_in_new_child) |
425 IPC_STRUCT_END() | 426 IPC_STRUCT_END() |
426 | 427 |
428 IPC_STRUCT_BEGIN(FrameHostMsg_DownloadUrl_Params) | |
429 IPC_STRUCT_MEMBER(int, render_view_id) | |
430 IPC_STRUCT_MEMBER(int, render_frame_id) | |
431 IPC_STRUCT_MEMBER(GURL, url) | |
432 IPC_STRUCT_MEMBER(content::Referrer, referrer) | |
433 IPC_STRUCT_MEMBER(url::Origin, initiator_origin) | |
clamy
2016/12/14 16:25:38
Should this be an Optional<url::Origin>, consideri
asanka
2016/12/14 18:21:30
The intent is that URLRequest::initiator() and in
| |
434 IPC_STRUCT_MEMBER(base::string16, suggested_name) | |
435 IPC_STRUCT_END() | |
436 | |
427 IPC_STRUCT_BEGIN(FrameMsg_TextTrackSettings_Params) | 437 IPC_STRUCT_BEGIN(FrameMsg_TextTrackSettings_Params) |
428 // Text tracks on/off state | 438 // Text tracks on/off state |
429 IPC_STRUCT_MEMBER(bool, text_tracks_enabled) | 439 IPC_STRUCT_MEMBER(bool, text_tracks_enabled) |
430 | 440 |
431 // Background color of the text track. | 441 // Background color of the text track. |
432 IPC_STRUCT_MEMBER(std::string, text_track_background_color) | 442 IPC_STRUCT_MEMBER(std::string, text_track_background_color) |
433 | 443 |
434 // Font family of the text track text. | 444 // Font family of the text track text. |
435 IPC_STRUCT_MEMBER(std::string, text_track_font_family) | 445 IPC_STRUCT_MEMBER(std::string, text_track_font_family) |
436 | 446 |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1022 // If a cross-process navigation was started for the initial history load in | 1032 // If a cross-process navigation was started for the initial history load in |
1023 // this subframe, this tries to cancel it to allow a client redirect to happen | 1033 // this subframe, this tries to cancel it to allow a client redirect to happen |
1024 // instead. | 1034 // instead. |
1025 IPC_MESSAGE_ROUTED0(FrameHostMsg_CancelInitialHistoryLoad) | 1035 IPC_MESSAGE_ROUTED0(FrameHostMsg_CancelInitialHistoryLoad) |
1026 | 1036 |
1027 // Notifies the browser that a frame finished loading. | 1037 // Notifies the browser that a frame finished loading. |
1028 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, | 1038 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, |
1029 GURL /* validated_url */) | 1039 GURL /* validated_url */) |
1030 | 1040 |
1031 // Initiates a download based on user actions like 'ALT+click'. | 1041 // Initiates a download based on user actions like 'ALT+click'. |
1032 IPC_MESSAGE_CONTROL5(FrameHostMsg_DownloadUrl, | 1042 IPC_MESSAGE_CONTROL(FrameHostMsg_DownloadUrl, FrameHostMsg_DownloadUrl_Params) |
1033 int /* render_view_id */, | |
1034 int /* render_frame_id */, | |
1035 GURL /* url */, | |
1036 content::Referrer /* referrer */, | |
1037 base::string16 /* suggested_name */) | |
1038 | 1043 |
1039 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. | 1044 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. |
1040 // Note: |data_url| is the contents of a data:URL, and that it's represented as | 1045 // Note: |data_url| is the contents of a data:URL, and that it's represented as |
1041 // a string only to work around size limitations for GURLs in IPC messages. | 1046 // a string only to work around size limitations for GURLs in IPC messages. |
1042 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL, | 1047 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL, |
1043 int /* render_view_id */, | 1048 int /* render_view_id */, |
1044 int /* render_frame_id */, | 1049 int /* render_frame_id */, |
1045 std::string /* data_url */) | 1050 std::string /* data_url */) |
1046 | 1051 |
1047 // Sent when after the onload handler has been invoked for the document | 1052 // Sent when after the onload handler has been invoked for the document |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1513 // nearest find result in the sending frame. | 1518 // nearest find result in the sending frame. |
1514 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1519 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1515 int /* nfr_request_id */, | 1520 int /* nfr_request_id */, |
1516 float /* distance */) | 1521 float /* distance */) |
1517 #endif | 1522 #endif |
1518 | 1523 |
1519 // Adding a new message? Stick to the sort order above: first platform | 1524 // Adding a new message? Stick to the sort order above: first platform |
1520 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1525 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1521 // platform independent FrameHostMsg, then ifdefs for platform specific | 1526 // platform independent FrameHostMsg, then ifdefs for platform specific |
1522 // FrameHostMsg. | 1527 // FrameHostMsg. |
OLD | NEW |