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) | |
128 IPC_STRUCT_TRAITS_MEMBER(url) | 127 IPC_STRUCT_TRAITS_MEMBER(url) |
129 IPC_STRUCT_TRAITS_MEMBER(base_url) | 128 IPC_STRUCT_TRAITS_MEMBER(base_url) |
130 IPC_STRUCT_TRAITS_MEMBER(referrer) | 129 IPC_STRUCT_TRAITS_MEMBER(referrer) |
131 IPC_STRUCT_TRAITS_MEMBER(transition) | 130 IPC_STRUCT_TRAITS_MEMBER(transition) |
132 IPC_STRUCT_TRAITS_MEMBER(redirects) | 131 IPC_STRUCT_TRAITS_MEMBER(redirects) |
133 IPC_STRUCT_TRAITS_MEMBER(should_update_history) | 132 IPC_STRUCT_TRAITS_MEMBER(should_update_history) |
134 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | 133 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) |
135 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) | 134 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) |
136 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) | 135 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) |
137 IPC_STRUCT_TRAITS_MEMBER(socket_address) | 136 IPC_STRUCT_TRAITS_MEMBER(socket_address) |
138 IPC_STRUCT_TRAITS_END() | 137 IPC_STRUCT_TRAITS_END() |
139 | 138 |
140 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has | 139 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has |
141 // too many data parameters to be reasonably put in a predefined IPC message. | 140 // too many data parameters to be reasonably put in a predefined IPC message. |
142 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, | 141 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, |
143 content::FrameNavigateParams) | 142 content::FrameNavigateParams) |
144 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) | 143 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) |
145 | 144 |
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 | |
155 // Information regarding the security of the connection (empty if the | 145 // Information regarding the security of the connection (empty if the |
156 // connection was not secure). | 146 // connection was not secure). |
157 IPC_STRUCT_MEMBER(std::string, security_info) | 147 IPC_STRUCT_MEMBER(std::string, security_info) |
158 | 148 |
159 // The gesture that initiated this navigation. | 149 // The gesture that initiated this navigation. |
160 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) | 150 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) |
161 | 151 |
162 // True if this was a post request. | 152 // True if this was a post request. |
163 IPC_STRUCT_MEMBER(bool, is_post) | 153 IPC_STRUCT_MEMBER(bool, is_post) |
164 | 154 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 IPC_STRUCT_TRAITS_END() | 266 IPC_STRUCT_TRAITS_END() |
277 | 267 |
278 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) | 268 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) |
279 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) | 269 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) |
280 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) | 270 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) |
281 IPC_STRUCT_TRAITS_MEMBER(redirects) | 271 IPC_STRUCT_TRAITS_MEMBER(redirects) |
282 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) | 272 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) |
283 IPC_STRUCT_TRAITS_MEMBER(request_time) | 273 IPC_STRUCT_TRAITS_MEMBER(request_time) |
284 IPC_STRUCT_TRAITS_MEMBER(page_state) | 274 IPC_STRUCT_TRAITS_MEMBER(page_state) |
285 IPC_STRUCT_TRAITS_MEMBER(page_id) | 275 IPC_STRUCT_TRAITS_MEMBER(page_id) |
286 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) | |
287 IPC_STRUCT_TRAITS_MEMBER(intended_as_new_entry) | |
288 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) | 276 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) |
289 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) | 277 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) |
290 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) | 278 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) |
291 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) | 279 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) |
292 IPC_STRUCT_TRAITS_END() | 280 IPC_STRUCT_TRAITS_END() |
293 | 281 |
294 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 282 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
295 IPC_STRUCT_TRAITS_MEMBER(origin) | 283 IPC_STRUCT_TRAITS_MEMBER(origin) |
296 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 284 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
297 IPC_STRUCT_TRAITS_MEMBER(name) | 285 IPC_STRUCT_TRAITS_MEMBER(name) |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 FrameMsg_PostMessage_Params) | 957 FrameMsg_PostMessage_Params) |
970 | 958 |
971 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 959 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
972 | 960 |
973 // Message to show/hide a popup menu using native controls. | 961 // Message to show/hide a popup menu using native controls. |
974 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 962 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
975 FrameHostMsg_ShowPopup_Params) | 963 FrameHostMsg_ShowPopup_Params) |
976 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 964 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
977 | 965 |
978 #endif | 966 #endif |
OLD | NEW |