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

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: Created 6 years, 6 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // history entry when it commits. This is used for cross-process redirects so 204 // history entry when it commits. This is used for cross-process redirects so
205 // the transferred navigation can recover the navigation state. 205 // the transferred navigation can recover the navigation state.
206 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 206 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
207 207
208 // Opaque history state (received by ViewHostMsg_UpdateState). 208 // Opaque history state (received by ViewHostMsg_UpdateState).
209 IPC_STRUCT_MEMBER(content::PageState, page_state) 209 IPC_STRUCT_MEMBER(content::PageState, page_state)
210 210
211 // Type of navigation. 211 // Type of navigation.
212 IPC_STRUCT_MEMBER(FrameMsg_Navigate_Type::Value, navigation_type) 212 IPC_STRUCT_MEMBER(FrameMsg_Navigate_Type::Value, navigation_type)
213 213
214 // The time the request was created 214 // The time the request was created. This is used by the old performance
215 // infrastructure to set up DocumentState associated with the RenderView.
216 // TODO(ppi): make it go away.
215 IPC_STRUCT_MEMBER(base::Time, request_time) 217 IPC_STRUCT_MEMBER(base::Time, request_time)
216 218
217 // Extra headers (separated by \n) to send during the request. 219 // Extra headers (separated by \n) to send during the request.
218 IPC_STRUCT_MEMBER(std::string, extra_headers) 220 IPC_STRUCT_MEMBER(std::string, extra_headers)
219 221
220 // The following two members identify a previous request that has been 222 // The following two members identify a previous request that has been
221 // created before this navigation is being transferred to a new render view. 223 // created before this navigation is being transferred to a new render view.
222 // This serves the purpose of recycling the old request. 224 // This serves the purpose of recycling the old request.
223 // Unless this refers to a transferred navigation, these values are -1 and -1. 225 // Unless this refers to a transferred navigation, these values are -1 and -1.
224 IPC_STRUCT_MEMBER(int, transferred_request_child_id) 226 IPC_STRUCT_MEMBER(int, transferred_request_child_id)
(...skipping 12 matching lines...) Expand all
237 // otherwise. 239 // otherwise.
238 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data) 240 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data)
239 241
240 // Whether or not this url should be allowed to access local file:// 242 // Whether or not this url should be allowed to access local file://
241 // resources. 243 // resources.
242 IPC_STRUCT_MEMBER(bool, can_load_local_resources) 244 IPC_STRUCT_MEMBER(bool, can_load_local_resources)
243 245
244 // If not empty, which frame to navigate. 246 // If not empty, which frame to navigate.
245 IPC_STRUCT_MEMBER(std::string, frame_to_navigate) 247 IPC_STRUCT_MEMBER(std::string, frame_to_navigate)
246 248
247 // The navigationStart time to expose to JS for this navigation. 249 // The navigationStart time to expose through the Navigation Timing to JS.
248 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start) 250 IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start)
249 IPC_STRUCT_END() 251 IPC_STRUCT_END()
250 252
251 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 253 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
252 IPC_STRUCT_MEMBER(GURL, url) 254 IPC_STRUCT_MEMBER(GURL, url)
253 IPC_STRUCT_MEMBER(content::Referrer, referrer) 255 IPC_STRUCT_MEMBER(content::Referrer, referrer)
254 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) 256 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
255 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 257 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
256 IPC_STRUCT_MEMBER(bool, user_gesture) 258 IPC_STRUCT_MEMBER(bool, user_gesture)
257 IPC_STRUCT_END() 259 IPC_STRUCT_END()
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 SkColor /* color */) 602 SkColor /* color */)
601 603
602 // Notifies the browser that media has started/stopped playing. 604 // Notifies the browser that media has started/stopped playing.
603 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification, 605 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification,
604 int64 /* player_cookie, distinguishes instances */, 606 int64 /* player_cookie, distinguishes instances */,
605 bool /* has_video */, 607 bool /* has_video */,
606 bool /* has_audio */) 608 bool /* has_audio */)
607 609
608 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, 610 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification,
609 int64 /* player_cookie, distinguishes instances */) 611 int64 /* player_cookie, distinguishes instances */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698