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

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

Issue 8142032: Add error description to the DidFailProvisionalLoad callback. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 2 months 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 | Annotate | Revision Log
OLDNEW
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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK 560 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK
561 // Indicates that this is a response to a ViewMsg_Repaint message. 561 // Indicates that this is a response to a ViewMsg_Repaint message.
562 // 562 //
563 // If flags is zero, then this message corresponds to an unsolicited paint 563 // If flags is zero, then this message corresponds to an unsolicited paint
564 // request by the render view. Any of the above bits may be set in flags, 564 // request by the render view. Any of the above bits may be set in flags,
565 // which would indicate that this paint message is an ACK for multiple 565 // which would indicate that this paint message is an ACK for multiple
566 // request messages. 566 // request messages.
567 IPC_STRUCT_MEMBER(int, flags) 567 IPC_STRUCT_MEMBER(int, flags)
568 IPC_STRUCT_END() 568 IPC_STRUCT_END()
569 569
570 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params)
571 // The frame ID for the failure report.
572 IPC_STRUCT_MEMBER(int64, frame_id)
573 // True if this is the top-most frame.
574 IPC_STRUCT_MEMBER(bool, is_main_frame)
575 // Error code as reported in the DidFailProvisionalLoad callback.
576 IPC_STRUCT_MEMBER(int, error_code)
577 // An error message generated from the error_code. This can be an empty
578 // string if we were unable to find a meaningful description.
579 IPC_STRUCT_MEMBER(string16, error_description)
580 // The URL that the error is reported for.
581 IPC_STRUCT_MEMBER(GURL, url)
582 // True if the failure is the result of navigating to a POST again
583 // and we're going to show the POST interstitial.
584 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial)
585 IPC_STRUCT_END()
586
570 IPC_STRUCT_BEGIN(ViewMsg_SwapOut_Params) 587 IPC_STRUCT_BEGIN(ViewMsg_SwapOut_Params)
571 // The identifier of the RenderProcessHost for the currently closing view. 588 // The identifier of the RenderProcessHost for the currently closing view.
572 // 589 //
573 // These first two parameters are technically redundant since they are 590 // These first two parameters are technically redundant since they are
574 // needed only when processing the ACK message, and the processor 591 // needed only when processing the ACK message, and the processor
575 // theoretically knows both the process and route ID. However, this is 592 // theoretically knows both the process and route ID. However, this is
576 // difficult to figure out with our current implementation, so this 593 // difficult to figure out with our current implementation, so this
577 // information is duplicated here. 594 // information is duplicated here.
578 IPC_STRUCT_MEMBER(int, closing_process_id) 595 IPC_STRUCT_MEMBER(int, closing_process_id)
579 596
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 GURL /* target URL */) 1395 GURL /* target URL */)
1379 1396
1380 // Sent when the renderer starts a provisional load for a frame. 1397 // Sent when the renderer starts a provisional load for a frame.
1381 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidStartProvisionalLoadForFrame, 1398 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidStartProvisionalLoadForFrame,
1382 int64 /* frame_id */, 1399 int64 /* frame_id */,
1383 bool /* true if it is the main frame */, 1400 bool /* true if it is the main frame */,
1384 bool /* true if the frame has an opener set */, 1401 bool /* true if the frame has an opener set */,
1385 GURL /* url */) 1402 GURL /* url */)
1386 1403
1387 // Sent when the renderer fails a provisional load with an error. 1404 // Sent when the renderer fails a provisional load with an error.
1388 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidFailProvisionalLoadWithError, 1405 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFailProvisionalLoadWithError,
1389 int64 /* frame_id */, 1406 ViewHostMsg_DidFailProvisionalLoadWithError_Params)
1390 bool /* true if it is the main frame */, 1407
1391 int /* error_code */,
1392 GURL /* url */,
1393 bool /* true if the failure is the result of
1394 navigating to a POST again and we're going to
1395 show the POST interstitial */)
1396 1408
1397 // Tells the render view that a ViewHostMsg_PaintAtSize message was 1409 // Tells the render view that a ViewHostMsg_PaintAtSize message was
1398 // processed, and the DIB is ready for use. |tag| has the same value that 1410 // processed, and the DIB is ready for use. |tag| has the same value that
1399 // the tag sent along with ViewMsg_PaintAtSize. 1411 // the tag sent along with ViewMsg_PaintAtSize.
1400 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK, 1412 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK,
1401 int /* tag */, 1413 int /* tag */,
1402 gfx::Size /* size */) 1414 gfx::Size /* size */)
1403 1415
1404 // Sent to update part of the view. In response to this message, the host 1416 // Sent to update part of the view. In response to this message, the host
1405 // generates a ViewMsg_UpdateRect_ACK message. 1417 // generates a ViewMsg_UpdateRect_ACK message.
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1951 media::MediaLogEvent /* event */) 1963 media::MediaLogEvent /* event */)
1952 1964
1953 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message 1965 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
1954 // being sent back. 1966 // being sent back.
1955 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) 1967 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse)
1956 1968
1957 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent 1969 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent
1958 // whenever the mouse is unlocked (which may or may not be caused by 1970 // whenever the mouse is unlocked (which may or may not be caused by
1959 // ViewHostMsg_UnlockMouse). 1971 // ViewHostMsg_UnlockMouse).
1960 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) 1972 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
1961
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698