OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK | 544 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK |
545 // Indicates that this is a response to a ViewMsg_Repaint message. | 545 // Indicates that this is a response to a ViewMsg_Repaint message. |
546 // | 546 // |
547 // If flags is zero, then this message corresponds to an unsolicited paint | 547 // If flags is zero, then this message corresponds to an unsolicited paint |
548 // request by the render view. Any of the above bits may be set in flags, | 548 // request by the render view. Any of the above bits may be set in flags, |
549 // which would indicate that this paint message is an ACK for multiple | 549 // which would indicate that this paint message is an ACK for multiple |
550 // request messages. | 550 // request messages. |
551 IPC_STRUCT_MEMBER(int, flags) | 551 IPC_STRUCT_MEMBER(int, flags) |
552 IPC_STRUCT_END() | 552 IPC_STRUCT_END() |
553 | 553 |
| 554 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) |
| 555 // The frame ID for the failure report. |
| 556 IPC_STRUCT_MEMBER(int64, frame_id) |
| 557 // True if this is the top-most frame. |
| 558 IPC_STRUCT_MEMBER(bool, is_main_frame) |
| 559 // Error code as reported in the DidFailProvisionalLoad callback. |
| 560 IPC_STRUCT_MEMBER(int, error_code) |
| 561 // An error message generated from the error_code. This can be an empty |
| 562 // string if we were unable to find a meaningful description. |
| 563 IPC_STRUCT_MEMBER(string16, error_description) |
| 564 // The URL that the error is reported for. |
| 565 IPC_STRUCT_MEMBER(GURL, url) |
| 566 // True if the failure is the result of navigating to a POST again |
| 567 // and we're going to show the POST interstitial. |
| 568 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) |
| 569 IPC_STRUCT_END() |
| 570 |
554 IPC_STRUCT_BEGIN(ViewMsg_SwapOut_Params) | 571 IPC_STRUCT_BEGIN(ViewMsg_SwapOut_Params) |
555 // The identifier of the RenderProcessHost for the currently closing view. | 572 // The identifier of the RenderProcessHost for the currently closing view. |
556 // | 573 // |
557 // These first two parameters are technically redundant since they are | 574 // These first two parameters are technically redundant since they are |
558 // needed only when processing the ACK message, and the processor | 575 // needed only when processing the ACK message, and the processor |
559 // theoretically knows both the process and route ID. However, this is | 576 // theoretically knows both the process and route ID. However, this is |
560 // difficult to figure out with our current implementation, so this | 577 // difficult to figure out with our current implementation, so this |
561 // information is duplicated here. | 578 // information is duplicated here. |
562 IPC_STRUCT_MEMBER(int, closing_process_id) | 579 IPC_STRUCT_MEMBER(int, closing_process_id) |
563 | 580 |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1362 GURL /* target URL */) | 1379 GURL /* target URL */) |
1363 | 1380 |
1364 // Sent when the renderer starts a provisional load for a frame. | 1381 // Sent when the renderer starts a provisional load for a frame. |
1365 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidStartProvisionalLoadForFrame, | 1382 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidStartProvisionalLoadForFrame, |
1366 int64 /* frame_id */, | 1383 int64 /* frame_id */, |
1367 bool /* true if it is the main frame */, | 1384 bool /* true if it is the main frame */, |
1368 GURL /* opener url if present, else empty */, | 1385 GURL /* opener url if present, else empty */, |
1369 GURL /* url */) | 1386 GURL /* url */) |
1370 | 1387 |
1371 // Sent when the renderer fails a provisional load with an error. | 1388 // Sent when the renderer fails a provisional load with an error. |
1372 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidFailProvisionalLoadWithError, | 1389 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFailProvisionalLoadWithError, |
1373 int64 /* frame_id */, | 1390 ViewHostMsg_DidFailProvisionalLoadWithError_Params) |
1374 bool /* true if it is the main frame */, | 1391 |
1375 int /* error_code */, | |
1376 GURL /* url */, | |
1377 bool /* true if the failure is the result of | |
1378 navigating to a POST again and we're going to | |
1379 show the POST interstitial */) | |
1380 | 1392 |
1381 // Tells the render view that a ViewHostMsg_PaintAtSize message was | 1393 // Tells the render view that a ViewHostMsg_PaintAtSize message was |
1382 // processed, and the DIB is ready for use. |tag| has the same value that | 1394 // processed, and the DIB is ready for use. |tag| has the same value that |
1383 // the tag sent along with ViewMsg_PaintAtSize. | 1395 // the tag sent along with ViewMsg_PaintAtSize. |
1384 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK, | 1396 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK, |
1385 int /* tag */, | 1397 int /* tag */, |
1386 gfx::Size /* size */) | 1398 gfx::Size /* size */) |
1387 | 1399 |
1388 // Sent to update part of the view. In response to this message, the host | 1400 // Sent to update part of the view. In response to this message, the host |
1389 // generates a ViewMsg_UpdateRect_ACK message. | 1401 // generates a ViewMsg_UpdateRect_ACK message. |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 media::MediaLogEvent /* event */) | 1946 media::MediaLogEvent /* event */) |
1935 | 1947 |
1936 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1948 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
1937 // being sent back. | 1949 // being sent back. |
1938 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1950 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
1939 | 1951 |
1940 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1952 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
1941 // whenever the mouse is unlocked (which may or may not be caused by | 1953 // whenever the mouse is unlocked (which may or may not be caused by |
1942 // ViewHostMsg_UnlockMouse). | 1954 // ViewHostMsg_UnlockMouse). |
1943 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1955 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
1944 | |
OLD | NEW |