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. If the failure was of a | |
116 // renderer-initiated navigation, this will be 0. | |
117 IPC_STRUCT_MEMBER(int, nav_entry_id) | |
115 // An error message generated from the error_code. This can be an empty | 118 // An error message generated from the error_code. This can be an empty |
116 // string if we were unable to find a meaningful description. | 119 // string if we were unable to find a meaningful description. |
117 IPC_STRUCT_MEMBER(base::string16, error_description) | 120 IPC_STRUCT_MEMBER(base::string16, error_description) |
118 // The URL that the error is reported for. | 121 // The URL that the error is reported for. |
119 IPC_STRUCT_MEMBER(GURL, url) | 122 IPC_STRUCT_MEMBER(GURL, url) |
120 // True if the failure is the result of navigating to a POST again | 123 // True if the failure is the result of navigating to a POST again |
121 // and we're going to show the POST interstitial. | 124 // and we're going to show the POST interstitial. |
122 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) | 125 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) |
123 IPC_STRUCT_END() | 126 IPC_STRUCT_END() |
124 | 127 |
125 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) | 128 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) |
126 IPC_STRUCT_TRAITS_MEMBER(page_id) | 129 IPC_STRUCT_TRAITS_MEMBER(page_id) |
130 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) | |
127 IPC_STRUCT_TRAITS_MEMBER(url) | 131 IPC_STRUCT_TRAITS_MEMBER(url) |
128 IPC_STRUCT_TRAITS_MEMBER(base_url) | 132 IPC_STRUCT_TRAITS_MEMBER(base_url) |
129 IPC_STRUCT_TRAITS_MEMBER(referrer) | 133 IPC_STRUCT_TRAITS_MEMBER(referrer) |
130 IPC_STRUCT_TRAITS_MEMBER(transition) | 134 IPC_STRUCT_TRAITS_MEMBER(transition) |
131 IPC_STRUCT_TRAITS_MEMBER(redirects) | 135 IPC_STRUCT_TRAITS_MEMBER(redirects) |
132 IPC_STRUCT_TRAITS_MEMBER(should_update_history) | 136 IPC_STRUCT_TRAITS_MEMBER(should_update_history) |
133 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | 137 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) |
134 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) | 138 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) |
135 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) | 139 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) |
136 IPC_STRUCT_TRAITS_MEMBER(socket_address) | 140 IPC_STRUCT_TRAITS_MEMBER(socket_address) |
137 IPC_STRUCT_TRAITS_END() | 141 IPC_STRUCT_TRAITS_END() |
138 | 142 |
139 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has | 143 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has |
140 // too many data parameters to be reasonably put in a predefined IPC message. | 144 // too many data parameters to be reasonably put in a predefined IPC message. |
141 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, | 145 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, |
142 content::FrameNavigateParams) | 146 content::FrameNavigateParams) |
143 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) | 147 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) |
144 | 148 |
149 // Whether this commit created a new entry. | |
150 IPC_STRUCT_MEMBER(bool, did_create_new_entry) | |
151 | |
152 // This is the value from the browser indicated whether it intended to make a | |
Charlie Reis
2015/04/24 22:02:02
nit: "Whether the browser intends for this navigat
Avi (use Gerrit)
2015/04/24 22:17:15
Done.
| |
153 // new entry. TODO(avi): Remove this when the pending entry situation is made | |
154 // sane and the browser keeps them around long enough to match them via | |
155 // nav_entry_id, above. | |
Charlie Reis
2015/04/24 22:02:02
nit: Drop "above."
Avi (use Gerrit)
2015/04/24 22:17:15
Done.
| |
156 IPC_STRUCT_MEMBER(bool, intended_as_new_entry) | |
157 | |
145 // Information regarding the security of the connection (empty if the | 158 // Information regarding the security of the connection (empty if the |
146 // connection was not secure). | 159 // connection was not secure). |
147 IPC_STRUCT_MEMBER(std::string, security_info) | 160 IPC_STRUCT_MEMBER(std::string, security_info) |
148 | 161 |
149 // The gesture that initiated this navigation. | 162 // The gesture that initiated this navigation. |
150 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) | 163 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) |
151 | 164 |
152 // True if this was a post request. | 165 // True if this was a post request. |
153 IPC_STRUCT_MEMBER(bool, is_post) | 166 IPC_STRUCT_MEMBER(bool, is_post) |
154 | 167 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
267 | 280 |
268 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) | 281 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) |
269 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) | 282 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) |
270 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) | 283 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) |
271 IPC_STRUCT_TRAITS_MEMBER(redirects) | 284 IPC_STRUCT_TRAITS_MEMBER(redirects) |
272 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) | 285 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) |
273 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) | 286 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) |
274 IPC_STRUCT_TRAITS_MEMBER(request_time) | 287 IPC_STRUCT_TRAITS_MEMBER(request_time) |
275 IPC_STRUCT_TRAITS_MEMBER(page_state) | 288 IPC_STRUCT_TRAITS_MEMBER(page_state) |
276 IPC_STRUCT_TRAITS_MEMBER(page_id) | 289 IPC_STRUCT_TRAITS_MEMBER(page_id) |
290 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) | |
291 IPC_STRUCT_TRAITS_MEMBER(intended_as_new_entry) | |
277 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) | 292 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) |
278 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) | 293 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) |
279 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) | 294 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) |
280 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) | 295 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) |
281 IPC_STRUCT_TRAITS_END() | 296 IPC_STRUCT_TRAITS_END() |
282 | 297 |
283 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 298 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
284 IPC_STRUCT_TRAITS_MEMBER(origin) | 299 IPC_STRUCT_TRAITS_MEMBER(origin) |
285 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 300 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
286 IPC_STRUCT_TRAITS_MEMBER(name) | 301 IPC_STRUCT_TRAITS_MEMBER(name) |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
903 FrameMsg_PostMessage_Params) | 918 FrameMsg_PostMessage_Params) |
904 | 919 |
905 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 920 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
906 | 921 |
907 // Message to show/hide a popup menu using native controls. | 922 // Message to show/hide a popup menu using native controls. |
908 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 923 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
909 FrameHostMsg_ShowPopup_Params) | 924 FrameHostMsg_ShowPopup_Params) |
910 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 925 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
911 | 926 |
912 #endif | 927 #endif |
OLD | NEW |