Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: content/common/frame_messages.h

Issue 1002803002: Classify navigations without page id in parallel to the existing classifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: with android Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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)
nasko 2015/04/27 14:03:56 Tracing through the path of this IPC message, I ca
Avi (use Gerrit) 2015/04/27 14:56:33 I removed the part of the code that used this, but
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 // This is the value from the browser indicated whether it intended to make a
150 // new entry. TODO(avi): Remove this when the pending entry situation is made
151 // sane and the browser keeps them around long enough to match them via
152 // nav_entry_id.
153 IPC_STRUCT_MEMBER(bool, intended_as_new_entry)
154
155 // Whether this commit created a new entry.
156 IPC_STRUCT_MEMBER(bool, did_create_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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 IPC_STRUCT_TRAITS_END() 279 IPC_STRUCT_TRAITS_END()
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(request_time) 286 IPC_STRUCT_TRAITS_MEMBER(request_time)
274 IPC_STRUCT_TRAITS_MEMBER(page_state) 287 IPC_STRUCT_TRAITS_MEMBER(page_state)
275 IPC_STRUCT_TRAITS_MEMBER(page_id) 288 IPC_STRUCT_TRAITS_MEMBER(page_id)
289 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id)
290 IPC_STRUCT_TRAITS_MEMBER(intended_as_new_entry)
276 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) 291 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset)
277 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) 292 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset)
278 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) 293 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length)
279 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) 294 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list)
280 IPC_STRUCT_TRAITS_END() 295 IPC_STRUCT_TRAITS_END()
281 296
282 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) 297 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
283 IPC_STRUCT_TRAITS_MEMBER(origin) 298 IPC_STRUCT_TRAITS_MEMBER(origin)
284 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) 299 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
285 IPC_STRUCT_TRAITS_MEMBER(name) 300 IPC_STRUCT_TRAITS_MEMBER(name)
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 FrameMsg_PostMessage_Params) 917 FrameMsg_PostMessage_Params)
903 918
904 #if defined(OS_MACOSX) || defined(OS_ANDROID) 919 #if defined(OS_MACOSX) || defined(OS_ANDROID)
905 920
906 // Message to show/hide a popup menu using native controls. 921 // Message to show/hide a popup menu using native controls.
907 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 922 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
908 FrameHostMsg_ShowPopup_Params) 923 FrameHostMsg_ShowPopup_Params)
909 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 924 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
910 925
911 #endif 926 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698