Chromium Code Reviews| Index: content/browser/frame_host/navigator_impl.h |
| diff --git a/content/browser/frame_host/navigator_impl.h b/content/browser/frame_host/navigator_impl.h |
| index 2d87a5b7c3b5a63b2ba0d12733149f6cbdea7429..fb5dbf82ff31aa2397ffc34937171ed96d5a2451 100644 |
| --- a/content/browser/frame_host/navigator_impl.h |
| +++ b/content/browser/frame_host/navigator_impl.h |
| @@ -6,9 +6,11 @@ |
| #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
| #include "base/memory/ref_counted.h" |
| +#include "base/time/time.h" |
| #include "content/browser/frame_host/navigation_controller_impl.h" |
| #include "content/browser/frame_host/navigator.h" |
| #include "content/common/content_export.h" |
| +#include "url/gurl.h" |
| struct FrameMsg_Navigate_Params; |
| @@ -78,6 +80,9 @@ class CONTENT_EXPORT NavigatorImpl : public Navigator { |
| RenderFrameHostImpl* render_frame_host, |
| const NavigationBeforeCommitInfo& info) OVERRIDE; |
| + virtual void LogResourceRequestTime( |
| + base::TimeTicks timestamp, const GURL& url) OVERRIDE; |
| + |
| private: |
| virtual ~NavigatorImpl() {} |
| @@ -104,6 +109,13 @@ class CONTENT_EXPORT NavigatorImpl : public Navigator { |
| // events. Can be NULL in tests. |
| NavigatorDelegate* delegate_; |
| + // The time the latest navigation request started, used for a few histograms |
| + // under the Navigation group. |
| + base::TimeTicks navigation_start_time_; |
| + // The URL of the navigation request to allow the later matching with the |
|
nasko
2014/09/24 00:48:07
nit: leave an empty line above the comment
carlosk
2014/09/24 18:35:50
Done.
|
| + // active when recording histogram data. |
|
clamy
2014/09/23 21:54:07
s/the later matching with the active/later matchin
carlosk
2014/09/24 18:35:50
Done.
|
| + GURL navigation_start_url_; |
|
nasko
2014/09/24 00:48:07
Why not use a pair of (url, frame_tree_node_id)? T
carlosk
2014/09/24 18:35:50
I guess not because:
* I don't think it'll help i
nasko
2014/09/24 23:11:21
I wrote this comment before asking about main fram
carlosk
2014/09/25 17:26:06
This is exactly the point that davidben@ brought u
|
| + |
| DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); |
| }; |