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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // The navigationStart time to expose to JS for this navigation. | 248 // The navigationStart time to expose to JS for this navigation. |
249 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start) | 249 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start) |
250 IPC_STRUCT_END() | 250 IPC_STRUCT_END() |
251 | 251 |
252 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) | 252 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) |
253 IPC_STRUCT_MEMBER(GURL, url) | 253 IPC_STRUCT_MEMBER(GURL, url) |
254 IPC_STRUCT_MEMBER(content::Referrer, referrer) | 254 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
255 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) | 255 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
256 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) | 256 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
257 IPC_STRUCT_MEMBER(bool, user_gesture) | 257 IPC_STRUCT_MEMBER(bool, user_gesture) |
| 258 IPC_STRUCT_MEMBER(bool, is_transition_navigation) |
258 IPC_STRUCT_END() | 259 IPC_STRUCT_END() |
259 | 260 |
260 // ----------------------------------------------------------------------------- | 261 // ----------------------------------------------------------------------------- |
261 // Messages sent from the browser to the renderer. | 262 // Messages sent from the browser to the renderer. |
262 | 263 |
263 // When HW accelerated buffers are swapped in an out-of-process child frame | 264 // When HW accelerated buffers are swapped in an out-of-process child frame |
264 // renderer, the message is forwarded to the embedding frame to notify it of | 265 // renderer, the message is forwarded to the embedding frame to notify it of |
265 // a new texture available for compositing. When the buffer has finished | 266 // a new texture available for compositing. When the buffer has finished |
266 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to | 267 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to |
267 // gpu host that produced this buffer. | 268 // gpu host that produced this buffer. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 int32 /* new_routing_id */) | 390 int32 /* new_routing_id */) |
390 | 391 |
391 // Sent by the renderer to the parent RenderFrameHost when a child frame is | 392 // Sent by the renderer to the parent RenderFrameHost when a child frame is |
392 // detached from the DOM. | 393 // detached from the DOM. |
393 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach) | 394 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach) |
394 | 395 |
395 // Sent by the renderer when the frame becomes focused. | 396 // Sent by the renderer when the frame becomes focused. |
396 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused) | 397 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused) |
397 | 398 |
398 // Sent when the renderer starts a provisional load for a frame. | 399 // Sent when the renderer starts a provisional load for a frame. |
399 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidStartProvisionalLoadForFrame, | 400 IPC_MESSAGE_ROUTED3(FrameHostMsg_DidStartProvisionalLoadForFrame, |
400 int32 /* parent_routing_id */, | 401 int32 /* parent_routing_id */, |
401 GURL /* url */) | 402 GURL /* url */, |
| 403 bool /* is_transition_navigation */) |
402 | 404 |
403 // Sent when the renderer fails a provisional load with an error. | 405 // Sent when the renderer fails a provisional load with an error. |
404 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, | 406 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, |
405 FrameHostMsg_DidFailProvisionalLoadWithError_Params) | 407 FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
406 | 408 |
407 // Sent when a provisional load on the main frame redirects. | 409 // Sent when a provisional load on the main frame redirects. |
408 IPC_MESSAGE_ROUTED3(FrameHostMsg_DidRedirectProvisionalLoad, | 410 IPC_MESSAGE_ROUTED3(FrameHostMsg_DidRedirectProvisionalLoad, |
409 int /* page_id */, | 411 int /* page_id */, |
410 GURL /* source_url*/, | 412 GURL /* source_url*/, |
411 GURL /* target_url */) | 413 GURL /* target_url */) |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 // |endOffset| are the offsets of the selection in the returned |content|. | 628 // |endOffset| are the offsets of the selection in the returned |content|. |
627 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, | 629 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, |
628 base::string16, /* content */ | 630 base::string16, /* content */ |
629 size_t, /* startOffset */ | 631 size_t, /* startOffset */ |
630 size_t /* endOffset */) | 632 size_t /* endOffset */) |
631 | 633 |
632 // Notifies the browser that the renderer has a pending navigation transition. | 634 // Notifies the browser that the renderer has a pending navigation transition. |
633 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest, | 635 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest, |
634 int /* render_frame_id */, | 636 int /* render_frame_id */, |
635 bool /* is_transition */) | 637 bool /* is_transition */) |
OLD | NEW |