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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 IPC_STRUCT_MEMBER(base::string16, error_description) | 117 IPC_STRUCT_MEMBER(base::string16, error_description) |
118 // The URL that the error is reported for. | 118 // The URL that the error is reported for. |
119 IPC_STRUCT_MEMBER(GURL, url) | 119 IPC_STRUCT_MEMBER(GURL, url) |
120 // True if the failure is the result of navigating to a POST again | 120 // True if the failure is the result of navigating to a POST again |
121 // and we're going to show the POST interstitial. | 121 // and we're going to show the POST interstitial. |
122 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) | 122 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) |
123 IPC_STRUCT_END() | 123 IPC_STRUCT_END() |
124 | 124 |
125 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) | 125 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) |
126 IPC_STRUCT_TRAITS_MEMBER(page_id) | 126 IPC_STRUCT_TRAITS_MEMBER(page_id) |
| 127 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) |
127 IPC_STRUCT_TRAITS_MEMBER(url) | 128 IPC_STRUCT_TRAITS_MEMBER(url) |
128 IPC_STRUCT_TRAITS_MEMBER(base_url) | 129 IPC_STRUCT_TRAITS_MEMBER(base_url) |
129 IPC_STRUCT_TRAITS_MEMBER(referrer) | 130 IPC_STRUCT_TRAITS_MEMBER(referrer) |
130 IPC_STRUCT_TRAITS_MEMBER(transition) | 131 IPC_STRUCT_TRAITS_MEMBER(transition) |
131 IPC_STRUCT_TRAITS_MEMBER(redirects) | 132 IPC_STRUCT_TRAITS_MEMBER(redirects) |
132 IPC_STRUCT_TRAITS_MEMBER(should_update_history) | 133 IPC_STRUCT_TRAITS_MEMBER(should_update_history) |
133 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | 134 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) |
134 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) | 135 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) |
135 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) | 136 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) |
136 IPC_STRUCT_TRAITS_MEMBER(socket_address) | 137 IPC_STRUCT_TRAITS_MEMBER(socket_address) |
137 IPC_STRUCT_TRAITS_END() | 138 IPC_STRUCT_TRAITS_END() |
138 | 139 |
139 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has | 140 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has |
140 // too many data parameters to be reasonably put in a predefined IPC message. | 141 // too many data parameters to be reasonably put in a predefined IPC message. |
141 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, | 142 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, |
142 content::FrameNavigateParams) | 143 content::FrameNavigateParams) |
143 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) | 144 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) |
144 | 145 |
| 146 // This is the value from the browser (copied from the navigation request) |
| 147 // indicating whether it intended to make a new entry. TODO(avi): Remove this |
| 148 // when the pending entry situation is made sane and the browser keeps them |
| 149 // around long enough to match them via nav_entry_id. |
| 150 IPC_STRUCT_MEMBER(bool, intended_as_new_entry) |
| 151 |
| 152 // Whether this commit created a new entry. |
| 153 IPC_STRUCT_MEMBER(bool, did_create_new_entry) |
| 154 |
145 // Information regarding the security of the connection (empty if the | 155 // Information regarding the security of the connection (empty if the |
146 // connection was not secure). | 156 // connection was not secure). |
147 IPC_STRUCT_MEMBER(std::string, security_info) | 157 IPC_STRUCT_MEMBER(std::string, security_info) |
148 | 158 |
149 // The gesture that initiated this navigation. | 159 // The gesture that initiated this navigation. |
150 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) | 160 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) |
151 | 161 |
152 // True if this was a post request. | 162 // True if this was a post request. |
153 IPC_STRUCT_MEMBER(bool, is_post) | 163 IPC_STRUCT_MEMBER(bool, is_post) |
154 | 164 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 IPC_STRUCT_TRAITS_END() | 276 IPC_STRUCT_TRAITS_END() |
267 | 277 |
268 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) | 278 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) |
269 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) | 279 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) |
270 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) | 280 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) |
271 IPC_STRUCT_TRAITS_MEMBER(redirects) | 281 IPC_STRUCT_TRAITS_MEMBER(redirects) |
272 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) | 282 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) |
273 IPC_STRUCT_TRAITS_MEMBER(request_time) | 283 IPC_STRUCT_TRAITS_MEMBER(request_time) |
274 IPC_STRUCT_TRAITS_MEMBER(page_state) | 284 IPC_STRUCT_TRAITS_MEMBER(page_state) |
275 IPC_STRUCT_TRAITS_MEMBER(page_id) | 285 IPC_STRUCT_TRAITS_MEMBER(page_id) |
| 286 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) |
| 287 IPC_STRUCT_TRAITS_MEMBER(intended_as_new_entry) |
276 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) | 288 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) |
277 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) | 289 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) |
278 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) | 290 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) |
279 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) | 291 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) |
280 IPC_STRUCT_TRAITS_END() | 292 IPC_STRUCT_TRAITS_END() |
281 | 293 |
282 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 294 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
283 IPC_STRUCT_TRAITS_MEMBER(origin) | 295 IPC_STRUCT_TRAITS_MEMBER(origin) |
284 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 296 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
285 IPC_STRUCT_TRAITS_MEMBER(name) | 297 IPC_STRUCT_TRAITS_MEMBER(name) |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 FrameMsg_PostMessage_Params) | 969 FrameMsg_PostMessage_Params) |
958 | 970 |
959 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 971 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
960 | 972 |
961 // Message to show/hide a popup menu using native controls. | 973 // Message to show/hide a popup menu using native controls. |
962 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 974 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
963 FrameHostMsg_ShowPopup_Params) | 975 FrameHostMsg_ShowPopup_Params) |
964 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 976 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
965 | 977 |
966 #endif | 978 #endif |
OLD | NEW |