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

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

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

Powered by Google App Engine
This is Rietveld 408576698