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

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

Issue 2139243003: customtabs: Send time to first contentful paint to the caller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
(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_ANDROID_PAGE_LOAD_METRICS_OBS ERVER_H_
6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_ANDROID_PAGE_LOAD_METRICS_OBS ERVER_H_
7
8 #include <jni.h>
9
10 #include "base/macros.h"
11 #include "components/page_load_metrics/browser/page_load_metrics_observer.h"
12
13 namespace content {
14 class WebContents;
15 } // namespace content
16
17 class GURL;
18
19 /** Forwards page load metrics to the Java side on Android. */
20 class AndroidPageLoadMetricsObserver
21 : public page_load_metrics::PageLoadMetricsObserver {
22 public:
23 AndroidPageLoadMetricsObserver(content::WebContents* web_contents);
24
25 // page_load_metrics::PageLoadMetricsObserver:
26 void OnTimingUpdate(
Bryan McQuade 2016/07/21 23:56:13 we added a new OnFirstContentfulPaint which gets c
Benoit L 2016/07/22 15:41:31 Let's start with a simple callback first, using On
27 const page_load_metrics::PageLoadTiming& timing,
28 const page_load_metrics::PageLoadExtraInfo& extra_info) override;
29
30 private:
31 content::WebContents* web_contents_;
32 bool has_seen_first_contentful_paint_;
33
34 DISALLOW_COPY_AND_ASSIGN(AndroidPageLoadMetricsObserver);
35 };
36
37 bool RegisterPageLoadMetricsBindings(JNIEnv* env);
38
39 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_ANDROID_PAGE_LOAD_METRICS_ OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698