| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PREVIEWS_PAGE_LOAD_METRICS_OB
SERVER_H_ | 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PREVIEWS_PAGE_LOAD_METRICS_OB
SERVER_H_ |
| 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PREVIEWS_PAGE_LOAD_METRICS_OB
SERVER_H_ | 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PREVIEWS_PAGE_LOAD_METRICS_OB
SERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // page_load_metrics::PageLoadMetricsObserver: | 44 // page_load_metrics::PageLoadMetricsObserver: |
| 45 ObservePolicy OnCommit(content::NavigationHandle* navigation_handle) override; | 45 ObservePolicy OnCommit(content::NavigationHandle* navigation_handle) override; |
| 46 void OnDomContentLoadedEventStart( | 46 void OnDomContentLoadedEventStart( |
| 47 const page_load_metrics::PageLoadTiming& timing, | 47 const page_load_metrics::PageLoadTiming& timing, |
| 48 const page_load_metrics::PageLoadExtraInfo& info) override; | 48 const page_load_metrics::PageLoadExtraInfo& info) override; |
| 49 void OnLoadEventStart( | 49 void OnLoadEventStart( |
| 50 const page_load_metrics::PageLoadTiming& timing, | 50 const page_load_metrics::PageLoadTiming& timing, |
| 51 const page_load_metrics::PageLoadExtraInfo& info) override; | 51 const page_load_metrics::PageLoadExtraInfo& info) override; |
| 52 void OnFirstLayout(const page_load_metrics::PageLoadTiming& timing, | 52 void OnFirstLayout(const page_load_metrics::PageLoadTiming& timing, |
| 53 const page_load_metrics::PageLoadExtraInfo& info) override; | 53 const page_load_metrics::PageLoadExtraInfo& info) override; |
| 54 void OnFirstContentfulPaint( | 54 void OnFirstContentfulPaintInPage( |
| 55 const page_load_metrics::PageLoadTiming& timing, | 55 const page_load_metrics::PageLoadTiming& timing, |
| 56 const page_load_metrics::PageLoadExtraInfo& info) override; | 56 const page_load_metrics::PageLoadExtraInfo& info) override; |
| 57 void OnParseStart(const page_load_metrics::PageLoadTiming& timing, | 57 void OnParseStart(const page_load_metrics::PageLoadTiming& timing, |
| 58 const page_load_metrics::PageLoadExtraInfo& info) override; | 58 const page_load_metrics::PageLoadExtraInfo& info) override; |
| 59 ObservePolicy ShouldObserveMimeType( | 59 ObservePolicy ShouldObserveMimeType( |
| 60 const std::string& mime_type) const override; | 60 const std::string& mime_type) const override; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 // Whether |web_contents| is showing an offline pages preview. Overridden in | 63 // Whether |web_contents| is showing an offline pages preview. Overridden in |
| 64 // testing. | 64 // testing. |
| 65 virtual bool IsOfflinePreview(content::WebContents* web_contents) const; | 65 virtual bool IsOfflinePreview(content::WebContents* web_contents) const; |
| 66 | 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(PreviewsPageLoadMetricsObserver); | 67 DISALLOW_COPY_AND_ASSIGN(PreviewsPageLoadMetricsObserver); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace previews | 70 } // namespace previews |
| 71 | 71 |
| 72 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PREVIEWS_PAGE_LOAD_METRICS
_OBSERVER_H_ | 72 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PREVIEWS_PAGE_LOAD_METRICS
_OBSERVER_H_ |
| OLD | NEW |