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

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

Issue 339573003: NavigationTiming: set navigationStart for navigations in new tabs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update browsertests. Created 6 years, 5 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 | Annotate | Revision Log
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // history entry when it commits. This is used for cross-process redirects so 202 // history entry when it commits. This is used for cross-process redirects so
203 // the transferred navigation can recover the navigation state. 203 // the transferred navigation can recover the navigation state.
204 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 204 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
205 205
206 // Opaque history state (received by ViewHostMsg_UpdateState). 206 // Opaque history state (received by ViewHostMsg_UpdateState).
207 IPC_STRUCT_MEMBER(content::PageState, page_state) 207 IPC_STRUCT_MEMBER(content::PageState, page_state)
208 208
209 // Type of navigation. 209 // Type of navigation.
210 IPC_STRUCT_MEMBER(FrameMsg_Navigate_Type::Value, navigation_type) 210 IPC_STRUCT_MEMBER(FrameMsg_Navigate_Type::Value, navigation_type)
211 211
212 // The time the request was created 212 // The time the request was created. This is used by the old performance
213 // infrastructure to set up DocumentState associated with the RenderView.
214 // TODO(ppi): make it go away.
213 IPC_STRUCT_MEMBER(base::Time, request_time) 215 IPC_STRUCT_MEMBER(base::Time, request_time)
214 216
215 // Extra headers (separated by \n) to send during the request. 217 // Extra headers (separated by \n) to send during the request.
216 IPC_STRUCT_MEMBER(std::string, extra_headers) 218 IPC_STRUCT_MEMBER(std::string, extra_headers)
217 219
218 // The following two members identify a previous request that has been 220 // The following two members identify a previous request that has been
219 // created before this navigation is being transferred to a new render view. 221 // created before this navigation is being transferred to a new render view.
220 // This serves the purpose of recycling the old request. 222 // This serves the purpose of recycling the old request.
221 // Unless this refers to a transferred navigation, these values are -1 and -1. 223 // Unless this refers to a transferred navigation, these values are -1 and -1.
222 IPC_STRUCT_MEMBER(int, transferred_request_child_id) 224 IPC_STRUCT_MEMBER(int, transferred_request_child_id)
(...skipping 12 matching lines...) Expand all
235 // otherwise. 237 // otherwise.
236 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data) 238 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data)
237 239
238 // Whether or not this url should be allowed to access local file:// 240 // Whether or not this url should be allowed to access local file://
239 // resources. 241 // resources.
240 IPC_STRUCT_MEMBER(bool, can_load_local_resources) 242 IPC_STRUCT_MEMBER(bool, can_load_local_resources)
241 243
242 // If not empty, which frame to navigate. 244 // If not empty, which frame to navigate.
243 IPC_STRUCT_MEMBER(std::string, frame_to_navigate) 245 IPC_STRUCT_MEMBER(std::string, frame_to_navigate)
244 246
245 // The navigationStart time to expose to JS for this navigation. 247 // The navigationStart time to expose through the Navigation Timing API to JS.
246 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start) 248 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start)
247 IPC_STRUCT_END() 249 IPC_STRUCT_END()
248 250
249 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 251 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
250 IPC_STRUCT_MEMBER(GURL, url) 252 IPC_STRUCT_MEMBER(GURL, url)
251 IPC_STRUCT_MEMBER(content::Referrer, referrer) 253 IPC_STRUCT_MEMBER(content::Referrer, referrer)
252 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) 254 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
253 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 255 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
254 IPC_STRUCT_MEMBER(bool, user_gesture) 256 IPC_STRUCT_MEMBER(bool, user_gesture)
255 IPC_STRUCT_END() 257 IPC_STRUCT_END()
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 // |endOffset| are the offsets of the selection in the returned |content|. 611 // |endOffset| are the offsets of the selection in the returned |content|.
610 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, 612 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse,
611 base::string16, /* content */ 613 base::string16, /* content */
612 size_t, /* startOffset */ 614 size_t, /* startOffset */
613 size_t /* endOffset */) 615 size_t /* endOffset */)
614 616
615 // Notifies the browser that the renderer has a pending navigation transition. 617 // Notifies the browser that the renderer has a pending navigation transition.
616 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest, 618 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest,
617 int /* render_frame_id */, 619 int /* render_frame_id */,
618 bool /* is_transition */) 620 bool /* is_transition */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698