Update mojo surfaces bindings and mojo/cc/ glue
[chromium-blink-merge.git] / chrome / browser / tab_contents / navigation_metrics_recorder.h
blobca3301e83b6315590d53010a1811eeea4b9cca8e
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_
8 #include "content/public/browser/web_contents_observer.h"
9 #include "content/public/browser/web_contents_user_data.h"
11 class NavigationMetricsRecorder
12 : public content::WebContentsObserver,
13 public content::WebContentsUserData<NavigationMetricsRecorder> {
14 public:
15 virtual ~NavigationMetricsRecorder();
17 private:
18 explicit NavigationMetricsRecorder(content::WebContents* web_contents);
19 friend class content::WebContentsUserData<NavigationMetricsRecorder>;
21 // content::WebContentsObserver overrides:
22 virtual void DidNavigateMainFrame(
23 const content::LoadCommittedDetails& details,
24 const content::FrameNavigateParams& params) OVERRIDE;
26 virtual void DidStartLoading(
27 content::RenderViewHost* render_view_host) OVERRIDE;
29 DISALLOW_COPY_AND_ASSIGN(NavigationMetricsRecorder);
32 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_