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 "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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 IPC_STRUCT_MEMBER(int, render_frame_id) | 105 IPC_STRUCT_MEMBER(int, render_frame_id) |
| 106 IPC_STRUCT_MEMBER(std::string, allowed_destination_host_pattern) | 106 IPC_STRUCT_MEMBER(std::string, allowed_destination_host_pattern) |
| 107 IPC_STRUCT_MEMBER(std::string, selector) | 107 IPC_STRUCT_MEMBER(std::string, selector) |
| 108 IPC_STRUCT_MEMBER(std::string, markup) | 108 IPC_STRUCT_MEMBER(std::string, markup) |
| 109 IPC_STRUCT_MEMBER(std::vector<content::TransitionElement>, elements) | 109 IPC_STRUCT_MEMBER(std::vector<content::TransitionElement>, elements) |
| 110 IPC_STRUCT_END() | 110 IPC_STRUCT_END() |
| 111 | 111 |
| 112 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) | 112 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
| 113 // Error code as reported in the DidFailProvisionalLoad callback. | 113 // Error code as reported in the DidFailProvisionalLoad callback. |
| 114 IPC_STRUCT_MEMBER(int, error_code) | 114 IPC_STRUCT_MEMBER(int, error_code) |
| 115 // The unique id of the navigation that failed. | |
|
Charlie Reis
2015/04/22 05:27:25
Can this be 0 if a renderer-initiated navigation f
Avi (use Gerrit)
2015/04/22 18:31:50
Yes.
| |
| 116 IPC_STRUCT_MEMBER(int, nav_entry_id) | |
| 115 // An error message generated from the error_code. This can be an empty | 117 // An error message generated from the error_code. This can be an empty |
| 116 // string if we were unable to find a meaningful description. | 118 // string if we were unable to find a meaningful description. |
| 117 IPC_STRUCT_MEMBER(base::string16, error_description) | 119 IPC_STRUCT_MEMBER(base::string16, error_description) |
| 118 // The URL that the error is reported for. | 120 // The URL that the error is reported for. |
| 119 IPC_STRUCT_MEMBER(GURL, url) | 121 IPC_STRUCT_MEMBER(GURL, url) |
| 120 // True if the failure is the result of navigating to a POST again | 122 // True if the failure is the result of navigating to a POST again |
| 121 // and we're going to show the POST interstitial. | 123 // and we're going to show the POST interstitial. |
| 122 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) | 124 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) |
| 123 IPC_STRUCT_END() | 125 IPC_STRUCT_END() |
| 124 | 126 |
| 125 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) | 127 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) |
| 126 IPC_STRUCT_TRAITS_MEMBER(page_id) | 128 IPC_STRUCT_TRAITS_MEMBER(page_id) |
| 129 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) | |
| 127 IPC_STRUCT_TRAITS_MEMBER(url) | 130 IPC_STRUCT_TRAITS_MEMBER(url) |
| 128 IPC_STRUCT_TRAITS_MEMBER(base_url) | 131 IPC_STRUCT_TRAITS_MEMBER(base_url) |
| 129 IPC_STRUCT_TRAITS_MEMBER(referrer) | 132 IPC_STRUCT_TRAITS_MEMBER(referrer) |
| 130 IPC_STRUCT_TRAITS_MEMBER(transition) | 133 IPC_STRUCT_TRAITS_MEMBER(transition) |
| 131 IPC_STRUCT_TRAITS_MEMBER(redirects) | 134 IPC_STRUCT_TRAITS_MEMBER(redirects) |
| 132 IPC_STRUCT_TRAITS_MEMBER(should_update_history) | 135 IPC_STRUCT_TRAITS_MEMBER(should_update_history) |
| 133 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | 136 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) |
| 134 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) | 137 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) |
| 135 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) | 138 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) |
| 136 IPC_STRUCT_TRAITS_MEMBER(socket_address) | 139 IPC_STRUCT_TRAITS_MEMBER(socket_address) |
| 137 IPC_STRUCT_TRAITS_END() | 140 IPC_STRUCT_TRAITS_END() |
| 138 | 141 |
| 139 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has | 142 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has |
| 140 // too many data parameters to be reasonably put in a predefined IPC message. | 143 // too many data parameters to be reasonably put in a predefined IPC message. |
| 141 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, | 144 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, |
| 142 content::FrameNavigateParams) | 145 content::FrameNavigateParams) |
| 143 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) | 146 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) |
| 144 | 147 |
| 148 // Whether this commit created a new entry. | |
| 149 IPC_STRUCT_MEMBER(bool, did_create_new_entry) | |
| 150 | |
| 145 // Information regarding the security of the connection (empty if the | 151 // Information regarding the security of the connection (empty if the |
| 146 // connection was not secure). | 152 // connection was not secure). |
| 147 IPC_STRUCT_MEMBER(std::string, security_info) | 153 IPC_STRUCT_MEMBER(std::string, security_info) |
| 148 | 154 |
| 149 // The gesture that initiated this navigation. | 155 // The gesture that initiated this navigation. |
| 150 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) | 156 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) |
| 151 | 157 |
| 152 // True if this was a post request. | 158 // True if this was a post request. |
| 153 IPC_STRUCT_MEMBER(bool, is_post) | 159 IPC_STRUCT_MEMBER(bool, is_post) |
| 154 | 160 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 267 | 273 |
| 268 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) | 274 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) |
| 269 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) | 275 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) |
| 270 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) | 276 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) |
| 271 IPC_STRUCT_TRAITS_MEMBER(redirects) | 277 IPC_STRUCT_TRAITS_MEMBER(redirects) |
| 272 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) | 278 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) |
| 273 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) | 279 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) |
| 274 IPC_STRUCT_TRAITS_MEMBER(request_time) | 280 IPC_STRUCT_TRAITS_MEMBER(request_time) |
| 275 IPC_STRUCT_TRAITS_MEMBER(page_state) | 281 IPC_STRUCT_TRAITS_MEMBER(page_state) |
| 276 IPC_STRUCT_TRAITS_MEMBER(page_id) | 282 IPC_STRUCT_TRAITS_MEMBER(page_id) |
| 283 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) | |
| 277 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) | 284 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) |
| 278 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) | 285 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) |
| 279 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) | 286 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) |
| 280 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) | 287 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) |
| 281 IPC_STRUCT_TRAITS_END() | 288 IPC_STRUCT_TRAITS_END() |
| 282 | 289 |
| 283 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 290 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
| 284 IPC_STRUCT_TRAITS_MEMBER(origin) | 291 IPC_STRUCT_TRAITS_MEMBER(origin) |
| 285 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 292 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
| 286 IPC_STRUCT_TRAITS_MEMBER(name) | 293 IPC_STRUCT_TRAITS_MEMBER(name) |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 903 FrameMsg_PostMessage_Params) | 910 FrameMsg_PostMessage_Params) |
| 904 | 911 |
| 905 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 912 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 906 | 913 |
| 907 // Message to show/hide a popup menu using native controls. | 914 // Message to show/hide a popup menu using native controls. |
| 908 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 915 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 909 FrameHostMsg_ShowPopup_Params) | 916 FrameHostMsg_ShowPopup_Params) |
| 910 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 917 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 911 | 918 |
| 912 #endif | 919 #endif |
| OLD | NEW |