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

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

Issue 633083002: Changes PlzNavitate histograms to try and simplify their multi-modal characteristic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Discounting time spent on beforeunload, created navigation metrics data class and updated histograms.xml. 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
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 "base/time/time.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // PlzNavigate 132 // PlzNavigate
133 // Cancel a NavigationRequest for |frame_tree_node|. Called when 133 // Cancel a NavigationRequest for |frame_tree_node|. Called when
134 // |frame_tree_node| is destroyed. 134 // |frame_tree_node| is destroyed.
135 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) {} 135 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) {}
136 136
137 // Called when the first resource request for a given navigation is executed 137 // Called when the first resource request for a given navigation is executed
138 // so that it can be tracked into an histogram. 138 // so that it can be tracked into an histogram.
139 virtual void LogResourceRequestTime( 139 virtual void LogResourceRequestTime(
140 base::TimeTicks timestamp, const GURL& url) {}; 140 base::TimeTicks timestamp, const GURL& url) {};
141 141
142 // Called to record the time it took to execute the before unload hook for the
143 // current navigation.
144 virtual void LogBeforeUnloadTime(
145 const base::TimeTicks& renderer_before_unload_start_time,
146 const base::TimeTicks& renderer_before_unload_end_time) {}
147
142 protected: 148 protected:
143 friend class base::RefCounted<Navigator>; 149 friend class base::RefCounted<Navigator>;
144 virtual ~Navigator() {} 150 virtual ~Navigator() {}
145 }; 151 };
146 152
147 } // namespace content 153 } // namespace content
148 154
149 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 155 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.h » ('j') | content/browser/frame_host/navigator_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698