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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 IPC_STRUCT_MEMBER(int, render_frame_id) | 104 IPC_STRUCT_MEMBER(int, render_frame_id) |
105 IPC_STRUCT_MEMBER(std::string, allowed_destination_host_pattern) | 105 IPC_STRUCT_MEMBER(std::string, allowed_destination_host_pattern) |
106 IPC_STRUCT_MEMBER(std::string, selector) | 106 IPC_STRUCT_MEMBER(std::string, selector) |
107 IPC_STRUCT_MEMBER(std::string, markup) | 107 IPC_STRUCT_MEMBER(std::string, markup) |
108 IPC_STRUCT_MEMBER(std::vector<content::TransitionElement>, elements) | 108 IPC_STRUCT_MEMBER(std::vector<content::TransitionElement>, elements) |
109 IPC_STRUCT_END() | 109 IPC_STRUCT_END() |
110 | 110 |
111 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) | 111 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
112 // Error code as reported in the DidFailProvisionalLoad callback. | 112 // Error code as reported in the DidFailProvisionalLoad callback. |
113 IPC_STRUCT_MEMBER(int, error_code) | 113 IPC_STRUCT_MEMBER(int, error_code) |
114 // The unique id of the navigation that failed. | |
115 IPC_STRUCT_MEMBER(int, nav_entry_id) | |
114 // An error message generated from the error_code. This can be an empty | 116 // An error message generated from the error_code. This can be an empty |
115 // string if we were unable to find a meaningful description. | 117 // string if we were unable to find a meaningful description. |
116 IPC_STRUCT_MEMBER(base::string16, error_description) | 118 IPC_STRUCT_MEMBER(base::string16, error_description) |
117 // The URL that the error is reported for. | 119 // The URL that the error is reported for. |
118 IPC_STRUCT_MEMBER(GURL, url) | 120 IPC_STRUCT_MEMBER(GURL, url) |
119 // True if the failure is the result of navigating to a POST again | 121 // True if the failure is the result of navigating to a POST again |
120 // and we're going to show the POST interstitial. | 122 // and we're going to show the POST interstitial. |
121 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) | 123 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) |
122 IPC_STRUCT_END() | 124 IPC_STRUCT_END() |
123 | 125 |
124 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) | 126 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) |
125 IPC_STRUCT_TRAITS_MEMBER(page_id) | 127 IPC_STRUCT_TRAITS_MEMBER(page_id) |
128 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) | |
126 IPC_STRUCT_TRAITS_MEMBER(url) | 129 IPC_STRUCT_TRAITS_MEMBER(url) |
127 IPC_STRUCT_TRAITS_MEMBER(base_url) | 130 IPC_STRUCT_TRAITS_MEMBER(base_url) |
128 IPC_STRUCT_TRAITS_MEMBER(referrer) | 131 IPC_STRUCT_TRAITS_MEMBER(referrer) |
129 IPC_STRUCT_TRAITS_MEMBER(transition) | 132 IPC_STRUCT_TRAITS_MEMBER(transition) |
130 IPC_STRUCT_TRAITS_MEMBER(redirects) | 133 IPC_STRUCT_TRAITS_MEMBER(redirects) |
131 IPC_STRUCT_TRAITS_MEMBER(should_update_history) | 134 IPC_STRUCT_TRAITS_MEMBER(should_update_history) |
132 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | 135 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) |
133 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) | 136 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) |
134 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) | 137 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) |
135 IPC_STRUCT_TRAITS_MEMBER(socket_address) | 138 IPC_STRUCT_TRAITS_MEMBER(socket_address) |
136 IPC_STRUCT_TRAITS_END() | 139 IPC_STRUCT_TRAITS_END() |
137 | 140 |
138 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has | 141 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has |
139 // too many data parameters to be reasonably put in a predefined IPC message. | 142 // too many data parameters to be reasonably put in a predefined IPC message. |
140 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, | 143 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, |
141 content::FrameNavigateParams) | 144 content::FrameNavigateParams) |
142 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) | 145 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) |
143 | 146 |
147 // Whether this commit created a new entry. TODO(avi): Does this need to go in | |
148 // FrameNavigateParams, instead? | |
Charlie Reis
2015/04/10 23:54:21
If we don't know it until commit time, then it pro
Avi (use Gerrit)
2015/04/13 22:42:48
Good point.
| |
149 IPC_STRUCT_MEMBER(bool, did_create_new_entry) | |
150 | |
144 // Information regarding the security of the connection (empty if the | 151 // Information regarding the security of the connection (empty if the |
145 // connection was not secure). | 152 // connection was not secure). |
146 IPC_STRUCT_MEMBER(std::string, security_info) | 153 IPC_STRUCT_MEMBER(std::string, security_info) |
147 | 154 |
148 // The gesture that initiated this navigation. | 155 // The gesture that initiated this navigation. |
149 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) | 156 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) |
150 | 157 |
151 // True if this was a post request. | 158 // True if this was a post request. |
152 IPC_STRUCT_MEMBER(bool, is_post) | 159 IPC_STRUCT_MEMBER(bool, is_post) |
153 | 160 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 | 242 |
236 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) | 243 IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams) |
237 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) | 244 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) |
238 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) | 245 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) |
239 IPC_STRUCT_TRAITS_MEMBER(redirects) | 246 IPC_STRUCT_TRAITS_MEMBER(redirects) |
240 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) | 247 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) |
241 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) | 248 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) |
242 IPC_STRUCT_TRAITS_MEMBER(request_time) | 249 IPC_STRUCT_TRAITS_MEMBER(request_time) |
243 IPC_STRUCT_TRAITS_MEMBER(page_state) | 250 IPC_STRUCT_TRAITS_MEMBER(page_state) |
244 IPC_STRUCT_TRAITS_MEMBER(page_id) | 251 IPC_STRUCT_TRAITS_MEMBER(page_id) |
252 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) | |
245 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) | 253 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) |
246 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) | 254 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) |
247 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) | 255 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) |
248 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) | 256 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) |
249 IPC_STRUCT_TRAITS_END() | 257 IPC_STRUCT_TRAITS_END() |
250 | 258 |
251 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 259 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
252 IPC_STRUCT_TRAITS_MEMBER(origin) | 260 IPC_STRUCT_TRAITS_MEMBER(origin) |
253 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 261 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
254 IPC_STRUCT_TRAITS_MEMBER(name) | 262 IPC_STRUCT_TRAITS_MEMBER(name) |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
854 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) | 862 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) |
855 | 863 |
856 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 864 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
857 | 865 |
858 // Message to show/hide a popup menu using native controls. | 866 // Message to show/hide a popup menu using native controls. |
859 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 867 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
860 FrameHostMsg_ShowPopup_Params) | 868 FrameHostMsg_ShowPopup_Params) |
861 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 869 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
862 | 870 |
863 #endif | 871 #endif |
OLD | NEW |