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

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: unit tests Created 5 years, 9 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 IPC_STRUCT_MEMBER(base::string16, error_description) 115 IPC_STRUCT_MEMBER(base::string16, error_description)
116 // The URL that the error is reported for. 116 // The URL that the error is reported for.
117 IPC_STRUCT_MEMBER(GURL, url) 117 IPC_STRUCT_MEMBER(GURL, url)
118 // True if the failure is the result of navigating to a POST again 118 // True if the failure is the result of navigating to a POST again
119 // and we're going to show the POST interstitial. 119 // and we're going to show the POST interstitial.
120 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) 120 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial)
121 IPC_STRUCT_END() 121 IPC_STRUCT_END()
122 122
123 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) 123 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams)
124 IPC_STRUCT_TRAITS_MEMBER(page_id) 124 IPC_STRUCT_TRAITS_MEMBER(page_id)
125 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id)
125 IPC_STRUCT_TRAITS_MEMBER(url) 126 IPC_STRUCT_TRAITS_MEMBER(url)
126 IPC_STRUCT_TRAITS_MEMBER(base_url) 127 IPC_STRUCT_TRAITS_MEMBER(base_url)
127 IPC_STRUCT_TRAITS_MEMBER(referrer) 128 IPC_STRUCT_TRAITS_MEMBER(referrer)
128 IPC_STRUCT_TRAITS_MEMBER(transition) 129 IPC_STRUCT_TRAITS_MEMBER(transition)
129 IPC_STRUCT_TRAITS_MEMBER(redirects) 130 IPC_STRUCT_TRAITS_MEMBER(redirects)
130 IPC_STRUCT_TRAITS_MEMBER(should_update_history) 131 IPC_STRUCT_TRAITS_MEMBER(should_update_history)
131 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) 132 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url)
132 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) 133 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding)
133 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) 134 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type)
134 IPC_STRUCT_TRAITS_MEMBER(socket_address) 135 IPC_STRUCT_TRAITS_MEMBER(socket_address)
135 IPC_STRUCT_TRAITS_END() 136 IPC_STRUCT_TRAITS_END()
136 137
137 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has 138 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has
138 // too many data parameters to be reasonably put in a predefined IPC message. 139 // too many data parameters to be reasonably put in a predefined IPC message.
139 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, 140 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params,
140 content::FrameNavigateParams) 141 content::FrameNavigateParams)
141 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) 142 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams)
142 143
144 // Whether this commit created a new entry. TODO(avi): Does this need to go in
145 // FrameNavigateParams, instead?
146 IPC_STRUCT_MEMBER(bool, did_create_new_entry)
147
143 // Information regarding the security of the connection (empty if the 148 // Information regarding the security of the connection (empty if the
144 // connection was not secure). 149 // connection was not secure).
145 IPC_STRUCT_MEMBER(std::string, security_info) 150 IPC_STRUCT_MEMBER(std::string, security_info)
146 151
147 // The gesture that initiated this navigation. 152 // The gesture that initiated this navigation.
148 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) 153 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture)
149 154
150 // True if this was a post request. 155 // True if this was a post request.
151 IPC_STRUCT_MEMBER(bool, is_post) 156 IPC_STRUCT_MEMBER(bool, is_post)
152 157
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) 233 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start)
229 IPC_STRUCT_TRAITS_MEMBER(redirects) 234 IPC_STRUCT_TRAITS_MEMBER(redirects)
230 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) 235 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources)
231 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) 236 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate)
232 IPC_STRUCT_TRAITS_MEMBER(request_time) 237 IPC_STRUCT_TRAITS_MEMBER(request_time)
233 IPC_STRUCT_TRAITS_END() 238 IPC_STRUCT_TRAITS_END()
234 239
235 IPC_STRUCT_TRAITS_BEGIN(content::HistoryNavigationParams) 240 IPC_STRUCT_TRAITS_BEGIN(content::HistoryNavigationParams)
236 IPC_STRUCT_TRAITS_MEMBER(page_state) 241 IPC_STRUCT_TRAITS_MEMBER(page_state)
237 IPC_STRUCT_TRAITS_MEMBER(page_id) 242 IPC_STRUCT_TRAITS_MEMBER(page_id)
243 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id)
238 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) 244 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset)
239 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) 245 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset)
240 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) 246 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length)
241 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) 247 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list)
242 IPC_STRUCT_TRAITS_END() 248 IPC_STRUCT_TRAITS_END()
243 249
244 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) 250 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams)
245 IPC_STRUCT_TRAITS_MEMBER(is_post) 251 IPC_STRUCT_TRAITS_MEMBER(is_post)
246 IPC_STRUCT_TRAITS_MEMBER(extra_headers) 252 IPC_STRUCT_TRAITS_MEMBER(extra_headers)
247 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data) 253 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data)
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) 844 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad)
839 845
840 #if defined(OS_MACOSX) || defined(OS_ANDROID) 846 #if defined(OS_MACOSX) || defined(OS_ANDROID)
841 847
842 // Message to show/hide a popup menu using native controls. 848 // Message to show/hide a popup menu using native controls.
843 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 849 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
844 FrameHostMsg_ShowPopup_Params) 850 FrameHostMsg_ShowPopup_Params)
845 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 851 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
846 852
847 #endif 853 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698