OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_HTTPS_PAGE_LOAD_METRICS_OBSER VER_H_ | |
6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_HTTPS_PAGE_LOAD_METRICS_OBSER VER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "base/time/time.h" | |
10 #include "components/page_load_metrics/browser/page_load_metrics_observer.h" | |
11 #include "url/gurl.h" | |
12 | |
13 class HttpsPageLoadMetricsObserver | |
Charlie Harrison
2016/04/25 13:20:08
Can the class/file name be a bit more descriptive?
felt
2016/04/25 21:30:04
Done.
| |
14 : public page_load_metrics::PageLoadMetricsObserver { | |
15 public: | |
16 HttpsPageLoadMetricsObserver(); | |
17 | |
18 // page_load_metrics::PageLoadMetricsObserver implementation: | |
Charlie Harrison
2016/04/25 13:20:08
page_load_metrics::PageLoadMetricsObserver:
felt
2016/04/25 21:30:04
Done.
| |
19 void OnCommit(content::NavigationHandle* navigation_handle, | |
20 bool started_in_foreground) override; | |
21 void OnHidden() override; | |
22 void OnShown() override; | |
23 void OnComplete( | |
24 const page_load_metrics::PageLoadTiming& timing, | |
25 const page_load_metrics::PageLoadExtraInfo& extra_info) override; | |
26 | |
27 private: | |
28 GURL url_; | |
Charlie Harrison
2016/04/25 13:20:08
PageLoadExtraInfo has the committed_url in OnCompl
felt
2016/04/25 21:30:04
Done.
| |
29 bool currently_in_foreground_; | |
30 base::TimeDelta foreground_time_; | |
31 base::Time last_time_shown_; | |
Charlie Harrison
2016/04/25 13:20:08
Why not use a TimeTicks here? Do you need to corre
felt
2016/04/25 21:30:04
Done.
| |
32 bool time_travelled_backwards_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(HttpsPageLoadMetricsObserver); | |
35 }; | |
36 | |
37 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_HTTPS_PAGE_LOAD_METRICS_OB SERVER_H_ | |
OLD | NEW |