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

Side by Side Diff: content/browser/frame_host/navigator.h

Issue 577963002: Add time-to-network histogram considering browser side navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing new build issues Created 6 years, 2 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
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/time/time.h"
9 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
10 #include "content/public/browser/navigation_controller.h" 11 #include "content/public/browser/navigation_controller.h"
11 #include "ui/base/window_open_disposition.h" 12 #include "ui/base/window_open_disposition.h"
12 13
13 class GURL; 14 class GURL;
14 struct FrameHostMsg_BeginNavigation_Params; 15 struct FrameHostMsg_BeginNavigation_Params;
15 struct FrameHostMsg_DidCommitProvisionalLoad_Params; 16 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; 17 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
17 18
18 namespace base { 19 namespace base {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 const GlobalRequestID& transferred_global_request_id, 109 const GlobalRequestID& transferred_global_request_id,
109 bool should_replace_current_entry, 110 bool should_replace_current_entry,
110 bool user_gesture) {} 111 bool user_gesture) {}
111 112
112 // PlzNavigate 113 // PlzNavigate
113 // Signal |render_frame_host| that a navigation is ready to commit (the 114 // Signal |render_frame_host| that a navigation is ready to commit (the
114 // response to the navigation request has been received). 115 // response to the navigation request has been received).
115 virtual void CommitNavigation(RenderFrameHostImpl* render_frame_host, 116 virtual void CommitNavigation(RenderFrameHostImpl* render_frame_host,
116 const NavigationBeforeCommitInfo& info) {}; 117 const NavigationBeforeCommitInfo& info) {};
117 118
119 // Called when the first resource request for a given navigation is executed
120 // so that it can be tracked into an histogram.
121 virtual void LogResourceRequestTime(
122 base::TimeTicks timestamp, const GURL& url) {};
123
118 protected: 124 protected:
119 friend class base::RefCounted<Navigator>; 125 friend class base::RefCounted<Navigator>;
120 virtual ~Navigator() {} 126 virtual ~Navigator() {}
121 }; 127 };
122 128
123 } // namespace content 129 } // namespace content
124 130
125 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 131 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698