| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Error code as reported in the DidFailProvisionalLoad callback. | 117 // Error code as reported in the DidFailProvisionalLoad callback. |
| 118 IPC_STRUCT_MEMBER(int, error_code) | 118 IPC_STRUCT_MEMBER(int, error_code) |
| 119 // An error message generated from the error_code. This can be an empty | 119 // An error message generated from the error_code. This can be an empty |
| 120 // string if we were unable to find a meaningful description. | 120 // string if we were unable to find a meaningful description. |
| 121 IPC_STRUCT_MEMBER(base::string16, error_description) | 121 IPC_STRUCT_MEMBER(base::string16, error_description) |
| 122 // The URL that the error is reported for. | 122 // The URL that the error is reported for. |
| 123 IPC_STRUCT_MEMBER(GURL, url) | 123 IPC_STRUCT_MEMBER(GURL, url) |
| 124 // True if the failure is the result of navigating to a POST again | 124 // True if the failure is the result of navigating to a POST again |
| 125 // and we're going to show the POST interstitial. | 125 // and we're going to show the POST interstitial. |
| 126 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) | 126 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) |
| 127 // True if the navigation was canceled because it was ignored by a handler, |
| 128 // e.g. shouldOverrideUrlLoading. |
| 129 IPC_STRUCT_MEMBER(bool, was_ignored_by_handler) |
| 127 IPC_STRUCT_END() | 130 IPC_STRUCT_END() |
| 128 | 131 |
| 129 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) | 132 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) |
| 130 IPC_STRUCT_TRAITS_MEMBER(page_id) | 133 IPC_STRUCT_TRAITS_MEMBER(page_id) |
| 131 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) | 134 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) |
| 132 IPC_STRUCT_TRAITS_MEMBER(item_sequence_number) | 135 IPC_STRUCT_TRAITS_MEMBER(item_sequence_number) |
| 133 IPC_STRUCT_TRAITS_MEMBER(document_sequence_number) | 136 IPC_STRUCT_TRAITS_MEMBER(document_sequence_number) |
| 134 IPC_STRUCT_TRAITS_MEMBER(url) | 137 IPC_STRUCT_TRAITS_MEMBER(url) |
| 135 IPC_STRUCT_TRAITS_MEMBER(base_url) | 138 IPC_STRUCT_TRAITS_MEMBER(base_url) |
| 136 IPC_STRUCT_TRAITS_MEMBER(referrer) | 139 IPC_STRUCT_TRAITS_MEMBER(referrer) |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 | 692 |
| 690 // Notifies the browser that a frame in the view has changed. This message | 693 // Notifies the browser that a frame in the view has changed. This message |
| 691 // has a lot of parameters and is packed/unpacked by functions defined in | 694 // has a lot of parameters and is packed/unpacked by functions defined in |
| 692 // render_messages.h. | 695 // render_messages.h. |
| 693 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad, | 696 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad, |
| 694 FrameHostMsg_DidCommitProvisionalLoad_Params) | 697 FrameHostMsg_DidCommitProvisionalLoad_Params) |
| 695 | 698 |
| 696 // Notifies the browser that a document has been loaded. | 699 // Notifies the browser that a document has been loaded. |
| 697 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFinishDocumentLoad) | 700 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFinishDocumentLoad) |
| 698 | 701 |
| 699 IPC_MESSAGE_ROUTED3(FrameHostMsg_DidFailLoadWithError, | 702 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidFailLoadWithError, |
| 700 GURL /* validated_url */, | 703 GURL /* validated_url */, |
| 701 int /* error_code */, | 704 int /* error_code */, |
| 702 base::string16 /* error_description */) | 705 base::string16 /* error_description */, |
| 706 bool /* was_ignored_by_handler */) |
| 703 | 707 |
| 704 // Sent when the renderer decides to ignore a navigation. | 708 // Sent when the renderer decides to ignore a navigation. |
| 705 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDropNavigation) | 709 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDropNavigation) |
| 706 | 710 |
| 707 // Sent when the renderer starts loading the page. |to_different_document| will | 711 // Sent when the renderer starts loading the page. |to_different_document| will |
| 708 // be true unless the load is a fragment navigation, or triggered by | 712 // be true unless the load is a fragment navigation, or triggered by |
| 709 // history.pushState/replaceState. | 713 // history.pushState/replaceState. |
| 710 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartLoading, | 714 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartLoading, |
| 711 bool /* to_different_document */) | 715 bool /* to_different_document */) |
| 712 | 716 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 FrameMsg_PostMessage_Params) | 1002 FrameMsg_PostMessage_Params) |
| 999 | 1003 |
| 1000 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1004 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 1001 | 1005 |
| 1002 // Message to show/hide a popup menu using native controls. | 1006 // Message to show/hide a popup menu using native controls. |
| 1003 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1007 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 1004 FrameHostMsg_ShowPopup_Params) | 1008 FrameHostMsg_ShowPopup_Params) |
| 1005 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1009 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 1006 | 1010 |
| 1007 #endif | 1011 #endif |
| OLD | NEW |