Chromium Code Reviews| 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 "cc/surfaces/surface_id.h" | 8 #include "cc/surfaces/surface_id.h" |
| 9 #include "cc/surfaces/surface_sequence.h" | 9 #include "cc/surfaces/surface_sequence.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 276 IPC_STRUCT_TRAITS_MEMBER(lofi_state) | 276 IPC_STRUCT_TRAITS_MEMBER(lofi_state) |
| 277 IPC_STRUCT_TRAITS_END() | 277 IPC_STRUCT_TRAITS_END() |
| 278 | 278 |
| 279 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) | 279 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) |
| 280 IPC_STRUCT_TRAITS_MEMBER(method) | 280 IPC_STRUCT_TRAITS_MEMBER(method) |
| 281 IPC_STRUCT_TRAITS_MEMBER(headers) | 281 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 282 IPC_STRUCT_TRAITS_MEMBER(load_flags) | 282 IPC_STRUCT_TRAITS_MEMBER(load_flags) |
| 283 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) | 283 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) |
| 284 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) | 284 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) |
| 285 IPC_STRUCT_TRAITS_MEMBER(request_context_type) | 285 IPC_STRUCT_TRAITS_MEMBER(request_context_type) |
| 286 IPC_STRUCT_TRAITS_MEMBER(renderer_navigation_start) | |
| 286 IPC_STRUCT_TRAITS_END() | 287 IPC_STRUCT_TRAITS_END() |
| 287 | 288 |
| 288 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) | 289 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) |
| 289 IPC_STRUCT_TRAITS_MEMBER(is_post) | 290 IPC_STRUCT_TRAITS_MEMBER(is_post) |
| 290 IPC_STRUCT_TRAITS_MEMBER(extra_headers) | 291 IPC_STRUCT_TRAITS_MEMBER(extra_headers) |
| 291 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data) | 292 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data) |
| 292 #if defined(OS_ANDROID) | 293 #if defined(OS_ANDROID) |
| 293 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) | 294 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) |
| 294 #endif | 295 #endif |
| 295 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) | 296 IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id) |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 724 // Indicates the renderer process is gone. This actually is sent by the | 725 // Indicates the renderer process is gone. This actually is sent by the |
| 725 // browser process to itself, but keeps the interface cleaner. | 726 // browser process to itself, but keeps the interface cleaner. |
| 726 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone, | 727 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone, |
| 727 int, /* this really is base::TerminationStatus */ | 728 int, /* this really is base::TerminationStatus */ |
| 728 int /* exit_code */) | 729 int /* exit_code */) |
| 729 | 730 |
| 730 // Sent by the renderer when the frame becomes focused. | 731 // Sent by the renderer when the frame becomes focused. |
| 731 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused) | 732 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused) |
| 732 | 733 |
| 733 // Sent when the renderer starts a provisional load for a frame. | 734 // Sent when the renderer starts a provisional load for a frame. |
| 734 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartProvisionalLoadForFrame, | 735 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidStartProvisionalLoadForFrame, |
| 735 GURL /* url */) | 736 GURL /* url */, |
| 737 double /* navigation_start */) | |
|
clamy
2015/10/28 12:40:01
We should send a base::TimeTicks or a base::Time.
Charlie Harrison
2015/10/28 14:45:00
Agree. I did it this way due to how we get the inf
| |
| 736 | 738 |
| 737 // Sent when the renderer fails a provisional load with an error. | 739 // Sent when the renderer fails a provisional load with an error. |
| 738 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, | 740 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, |
| 739 FrameHostMsg_DidFailProvisionalLoadWithError_Params) | 741 FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
| 740 | 742 |
| 741 // Notifies the browser that a frame in the view has changed. This message | 743 // Notifies the browser that a frame in the view has changed. This message |
| 742 // has a lot of parameters and is packed/unpacked by functions defined in | 744 // has a lot of parameters and is packed/unpacked by functions defined in |
| 743 // render_messages.h. | 745 // render_messages.h. |
| 744 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad, | 746 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad, |
| 745 FrameHostMsg_DidCommitProvisionalLoad_Params) | 747 FrameHostMsg_DidCommitProvisionalLoad_Params) |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1201 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1203 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 1202 FrameHostMsg_ShowPopup_Params) | 1204 FrameHostMsg_ShowPopup_Params) |
| 1203 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1205 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 1204 | 1206 |
| 1205 #endif | 1207 #endif |
| 1206 | 1208 |
| 1207 // Adding a new message? Stick to the sort order above: first platform | 1209 // Adding a new message? Stick to the sort order above: first platform |
| 1208 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1210 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1209 // platform independent FrameHostMsg, then ifdefs for platform specific | 1211 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1210 // FrameHostMsg. | 1212 // FrameHostMsg. |
| OLD | NEW |