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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 // Information about the MessagePorts this message contains. | 332 // Information about the MessagePorts this message contains. |
333 IPC_STRUCT_MEMBER(std::vector<int>, message_ports) | 333 IPC_STRUCT_MEMBER(std::vector<int>, message_ports) |
334 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) | 334 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) |
335 IPC_STRUCT_END() | 335 IPC_STRUCT_END() |
336 | 336 |
337 IPC_STRUCT_TRAITS_BEGIN(content::CommonNavigationParams) | 337 IPC_STRUCT_TRAITS_BEGIN(content::CommonNavigationParams) |
338 IPC_STRUCT_TRAITS_MEMBER(url) | 338 IPC_STRUCT_TRAITS_MEMBER(url) |
339 IPC_STRUCT_TRAITS_MEMBER(referrer) | 339 IPC_STRUCT_TRAITS_MEMBER(referrer) |
340 IPC_STRUCT_TRAITS_MEMBER(transition) | 340 IPC_STRUCT_TRAITS_MEMBER(transition) |
341 IPC_STRUCT_TRAITS_MEMBER(navigation_type) | 341 IPC_STRUCT_TRAITS_MEMBER(navigation_type) |
| 342 IPC_STRUCT_TRAITS_MEMBER(gesture) |
342 IPC_STRUCT_TRAITS_MEMBER(allow_download) | 343 IPC_STRUCT_TRAITS_MEMBER(allow_download) |
343 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) | 344 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) |
344 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) | 345 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) |
345 IPC_STRUCT_TRAITS_MEMBER(report_type) | 346 IPC_STRUCT_TRAITS_MEMBER(report_type) |
346 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) | 347 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) |
347 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) | 348 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) |
348 IPC_STRUCT_TRAITS_MEMBER(lofi_state) | 349 IPC_STRUCT_TRAITS_MEMBER(lofi_state) |
349 IPC_STRUCT_TRAITS_MEMBER(navigation_start) | 350 IPC_STRUCT_TRAITS_MEMBER(navigation_start) |
350 IPC_STRUCT_TRAITS_MEMBER(method) | 351 IPC_STRUCT_TRAITS_MEMBER(method) |
351 IPC_STRUCT_TRAITS_MEMBER(post_data) | 352 IPC_STRUCT_TRAITS_MEMBER(post_data) |
352 IPC_STRUCT_TRAITS_END() | 353 IPC_STRUCT_TRAITS_END() |
353 | 354 |
354 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) | 355 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) |
355 IPC_STRUCT_TRAITS_MEMBER(headers) | 356 IPC_STRUCT_TRAITS_MEMBER(headers) |
356 IPC_STRUCT_TRAITS_MEMBER(load_flags) | 357 IPC_STRUCT_TRAITS_MEMBER(load_flags) |
357 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) | |
358 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) | 358 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) |
359 IPC_STRUCT_TRAITS_MEMBER(request_context_type) | 359 IPC_STRUCT_TRAITS_MEMBER(request_context_type) |
360 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | 360 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) |
361 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) | 361 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) |
362 IPC_STRUCT_TRAITS_END() | 362 IPC_STRUCT_TRAITS_END() |
363 | 363 |
364 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) | 364 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) |
365 IPC_STRUCT_TRAITS_MEMBER(extra_headers) | 365 IPC_STRUCT_TRAITS_MEMBER(extra_headers) |
366 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) | 366 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) |
367 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id) | 367 IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id) |
(...skipping 18 matching lines...) Expand all Loading... |
386 IPC_STRUCT_TRAITS_MEMBER(has_committed_real_load) | 386 IPC_STRUCT_TRAITS_MEMBER(has_committed_real_load) |
387 IPC_STRUCT_TRAITS_MEMBER(intended_as_new_entry) | 387 IPC_STRUCT_TRAITS_MEMBER(intended_as_new_entry) |
388 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) | 388 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) |
389 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) | 389 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) |
390 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) | 390 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) |
391 IPC_STRUCT_TRAITS_MEMBER(is_view_source) | 391 IPC_STRUCT_TRAITS_MEMBER(is_view_source) |
392 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) | 392 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) |
393 IPC_STRUCT_TRAITS_MEMBER(should_create_service_worker) | 393 IPC_STRUCT_TRAITS_MEMBER(should_create_service_worker) |
394 IPC_STRUCT_TRAITS_MEMBER(navigation_timing) | 394 IPC_STRUCT_TRAITS_MEMBER(navigation_timing) |
395 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id) | 395 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id) |
396 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) | |
397 #if defined(OS_ANDROID) | 396 #if defined(OS_ANDROID) |
398 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string) | 397 IPC_STRUCT_TRAITS_MEMBER(data_url_as_string) |
399 #endif | 398 #endif |
400 IPC_STRUCT_TRAITS_END() | 399 IPC_STRUCT_TRAITS_END() |
401 | 400 |
402 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 401 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
403 IPC_STRUCT_TRAITS_MEMBER(origin) | 402 IPC_STRUCT_TRAITS_MEMBER(origin) |
404 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 403 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
405 IPC_STRUCT_TRAITS_MEMBER(name) | 404 IPC_STRUCT_TRAITS_MEMBER(name) |
406 IPC_STRUCT_TRAITS_MEMBER(unique_name) | 405 IPC_STRUCT_TRAITS_MEMBER(unique_name) |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 // Indicates the renderer process is gone. This actually is sent by the | 963 // Indicates the renderer process is gone. This actually is sent by the |
965 // browser process to itself, but keeps the interface cleaner. | 964 // browser process to itself, but keeps the interface cleaner. |
966 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone, | 965 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone, |
967 int, /* this really is base::TerminationStatus */ | 966 int, /* this really is base::TerminationStatus */ |
968 int /* exit_code */) | 967 int /* exit_code */) |
969 | 968 |
970 // Sent by the renderer when the frame becomes focused. | 969 // Sent by the renderer when the frame becomes focused. |
971 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused) | 970 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused) |
972 | 971 |
973 // Sent when the renderer starts a provisional load for a frame. | 972 // Sent when the renderer starts a provisional load for a frame. |
974 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidStartProvisionalLoad, | 973 IPC_MESSAGE_ROUTED3(FrameHostMsg_DidStartProvisionalLoad, |
975 GURL /* url */, | 974 GURL /* url */, |
976 base::TimeTicks /* navigation_start */) | 975 base::TimeTicks /* navigation_start */, |
| 976 content::NavigationGesture /* gesture */) |
977 | 977 |
978 // Sent when the renderer fails a provisional load with an error. | 978 // Sent when the renderer fails a provisional load with an error. |
979 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, | 979 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, |
980 FrameHostMsg_DidFailProvisionalLoadWithError_Params) | 980 FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
981 | 981 |
982 // Notifies the browser that a frame in the view has changed. This message | 982 // Notifies the browser that a frame in the view has changed. This message |
983 // has a lot of parameters and is packed/unpacked by functions defined in | 983 // has a lot of parameters and is packed/unpacked by functions defined in |
984 // render_messages.h. | 984 // render_messages.h. |
985 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad, | 985 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad, |
986 FrameHostMsg_DidCommitProvisionalLoad_Params) | 986 FrameHostMsg_DidCommitProvisionalLoad_Params) |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1539 // nearest find result in the sending frame. | 1539 // nearest find result in the sending frame. |
1540 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1540 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1541 int /* nfr_request_id */, | 1541 int /* nfr_request_id */, |
1542 float /* distance */) | 1542 float /* distance */) |
1543 #endif | 1543 #endif |
1544 | 1544 |
1545 // Adding a new message? Stick to the sort order above: first platform | 1545 // Adding a new message? Stick to the sort order above: first platform |
1546 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1546 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1547 // platform independent FrameHostMsg, then ifdefs for platform specific | 1547 // platform independent FrameHostMsg, then ifdefs for platform specific |
1548 // FrameHostMsg. | 1548 // FrameHostMsg. |
OLD | NEW |