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

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: DCHECK that browser_navigation_start is always present. 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // history entry when it commits. This is used for cross-process redirects so 205 // history entry when it commits. This is used for cross-process redirects so
206 // the transferred navigation can recover the navigation state. 206 // the transferred navigation can recover the navigation state.
207 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 207 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
208 208
209 // Opaque history state (received by ViewHostMsg_UpdateState). 209 // Opaque history state (received by ViewHostMsg_UpdateState).
210 IPC_STRUCT_MEMBER(content::PageState, page_state) 210 IPC_STRUCT_MEMBER(content::PageState, page_state)
211 211
212 // Type of navigation. 212 // Type of navigation.
213 IPC_STRUCT_MEMBER(FrameMsg_Navigate_Type::Value, navigation_type) 213 IPC_STRUCT_MEMBER(FrameMsg_Navigate_Type::Value, navigation_type)
214 214
215 // The time the request was created 215 // The time the request was created. This is used by the old performance
216 // infrastructure to set up DocumentState associated with the RenderView.
217 // TODO(ppi): make it go away.
216 IPC_STRUCT_MEMBER(base::Time, request_time) 218 IPC_STRUCT_MEMBER(base::Time, request_time)
217 219
218 // Extra headers (separated by \n) to send during the request. 220 // Extra headers (separated by \n) to send during the request.
219 IPC_STRUCT_MEMBER(std::string, extra_headers) 221 IPC_STRUCT_MEMBER(std::string, extra_headers)
220 222
221 // The following two members identify a previous request that has been 223 // The following two members identify a previous request that has been
222 // created before this navigation is being transferred to a new render view. 224 // created before this navigation is being transferred to a new render view.
223 // This serves the purpose of recycling the old request. 225 // This serves the purpose of recycling the old request.
224 // Unless this refers to a transferred navigation, these values are -1 and -1. 226 // Unless this refers to a transferred navigation, these values are -1 and -1.
225 IPC_STRUCT_MEMBER(int, transferred_request_child_id) 227 IPC_STRUCT_MEMBER(int, transferred_request_child_id)
(...skipping 12 matching lines...) Expand all
238 // otherwise. 240 // otherwise.
239 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data) 241 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data)
240 242
241 // Whether or not this url should be allowed to access local file:// 243 // Whether or not this url should be allowed to access local file://
242 // resources. 244 // resources.
243 IPC_STRUCT_MEMBER(bool, can_load_local_resources) 245 IPC_STRUCT_MEMBER(bool, can_load_local_resources)
244 246
245 // If not empty, which frame to navigate. 247 // If not empty, which frame to navigate.
246 IPC_STRUCT_MEMBER(std::string, frame_to_navigate) 248 IPC_STRUCT_MEMBER(std::string, frame_to_navigate)
247 249
248 // The navigationStart time to expose to JS for this navigation. 250 // The navigationStart time to expose through the Navigation Timing to JS.
nasko 2014/06/27 23:10:54 nit: Navigation Timing API
ppi 2014/07/01 18:40:13 Done.
249 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start) 251 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start)
250 IPC_STRUCT_END() 252 IPC_STRUCT_END()
251 253
252 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 254 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
253 IPC_STRUCT_MEMBER(GURL, url) 255 IPC_STRUCT_MEMBER(GURL, url)
254 IPC_STRUCT_MEMBER(content::Referrer, referrer) 256 IPC_STRUCT_MEMBER(content::Referrer, referrer)
255 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) 257 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
256 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 258 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
257 IPC_STRUCT_MEMBER(bool, user_gesture) 259 IPC_STRUCT_MEMBER(bool, user_gesture)
258 IPC_STRUCT_END() 260 IPC_STRUCT_END()
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 // |endOffset| are the offsets of the selection in the returned |content|. 628 // |endOffset| are the offsets of the selection in the returned |content|.
627 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, 629 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse,
628 base::string16, /* content */ 630 base::string16, /* content */
629 size_t, /* startOffset */ 631 size_t, /* startOffset */
630 size_t /* endOffset */) 632 size_t /* endOffset */)
631 633
632 // Notifies the browser that the renderer has a pending navigation transition. 634 // Notifies the browser that the renderer has a pending navigation transition.
633 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest, 635 IPC_MESSAGE_CONTROL2(FrameHostMsg_SetHasPendingTransitionRequest,
634 int /* render_frame_id */, 636 int /* render_frame_id */,
635 bool /* is_transition */) 637 bool /* is_transition */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698