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

Side by Side Diff: chrome/browser/metrics/renderer_uptime_web_contents_observer.h

Issue 2697323004: Adds UMA metrics for renderer uptime (Closed)
Patch Set: fix 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
(Empty)
1 // Copyright 2017 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_METRICS_RENDERER_UPTIME_WEB_CONTENTS_OBSERVER_H_
6 #define CHROME_BROWSER_METRICS_RENDERER_UPTIME_WEB_CONTENTS_OBSERVER_H_
7
8 #include "base/macros.h"
9 #include "content/public/browser/web_contents_observer.h"
10 #include "content/public/browser/web_contents_user_data.h"
11
12 namespace metrics {
13
14 // Tracks user input events from web contents and notifies
15 // |RendererUptimeWebContentsObserver|.
16 class RendererUptimeWebContentsObserver
17 : public content::WebContentsObserver,
18 public content::WebContentsUserData<RendererUptimeWebContentsObserver> {
19 public:
20 explicit RendererUptimeWebContentsObserver(
21 content::WebContents* web_contents);
22
23 static RendererUptimeWebContentsObserver* CreateForWebContents(
24 content::WebContents* web_contents);
25
26 private:
27 friend class content::WebContentsUserData<RendererUptimeWebContentsObserver>;
28
29 // content::WebContentsObserver:
30 void DocumentAvailableInMainFrame() override;
31
32 DISALLOW_COPY_AND_ASSIGN(RendererUptimeWebContentsObserver);
33 };
34
35 } // namespace metrics
36
37 #endif // CHROME_BROWSER_METRICS_RENDERER_UPTIME_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698