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> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "chrome/browser/page_load_metrics/page_load_metrics_observer.h" | 11 #include "chrome/browser/page_load_metrics/page_load_metrics_observer.h" |
10 | 12 |
11 namespace content { | 13 namespace content { |
12 class NavigationHandle; | 14 class NavigationHandle; |
13 class WebContents; | 15 class WebContents; |
14 } | 16 } |
15 | 17 |
16 namespace page_load_metrics { | 18 namespace page_load_metrics { |
17 struct PageLoadExtraInfo; | 19 struct PageLoadExtraInfo; |
(...skipping 29 matching lines...) Expand all Loading... |
47 void OnLoadEventStart( | 49 void OnLoadEventStart( |
48 const page_load_metrics::PageLoadTiming& timing, | 50 const page_load_metrics::PageLoadTiming& timing, |
49 const page_load_metrics::PageLoadExtraInfo& info) override; | 51 const page_load_metrics::PageLoadExtraInfo& info) override; |
50 void OnFirstLayout(const page_load_metrics::PageLoadTiming& timing, | 52 void OnFirstLayout(const page_load_metrics::PageLoadTiming& timing, |
51 const page_load_metrics::PageLoadExtraInfo& info) override; | 53 const page_load_metrics::PageLoadExtraInfo& info) override; |
52 void OnFirstContentfulPaint( | 54 void OnFirstContentfulPaint( |
53 const page_load_metrics::PageLoadTiming& timing, | 55 const page_load_metrics::PageLoadTiming& timing, |
54 const page_load_metrics::PageLoadExtraInfo& info) override; | 56 const page_load_metrics::PageLoadExtraInfo& info) override; |
55 void OnParseStart(const page_load_metrics::PageLoadTiming& timing, | 57 void OnParseStart(const page_load_metrics::PageLoadTiming& timing, |
56 const page_load_metrics::PageLoadExtraInfo& info) override; | 58 const page_load_metrics::PageLoadExtraInfo& info) override; |
| 59 ObservePolicy ShouldObserveMimeType( |
| 60 const std::string& mime_type) const override; |
57 | 61 |
58 private: | 62 private: |
59 // Whether |web_contents| is showing an offline pages preview. Overridden in | 63 // Whether |web_contents| is showing an offline pages preview. Overridden in |
60 // testing. | 64 // testing. |
61 virtual bool IsOfflinePreview(content::WebContents* web_contents) const; | 65 virtual bool IsOfflinePreview(content::WebContents* web_contents) const; |
62 | 66 |
63 DISALLOW_COPY_AND_ASSIGN(PreviewsPageLoadMetricsObserver); | 67 DISALLOW_COPY_AND_ASSIGN(PreviewsPageLoadMetricsObserver); |
64 }; | 68 }; |
65 | 69 |
66 } // namespace previews | 70 } // namespace previews |
67 | 71 |
68 #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 |