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

Side by Side Diff: chrome/browser/page_load_metrics/observers/previews_page_load_metrics_observer.h

Issue 2699213002: Adding MHTML support into Page Load Metrics (Closed)
Patch Set: Only observe MHTML for previews observer Created 3 years, 10 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698