Index: chrome/browser/tab_contents/navigation_metrics_recorder.h |
diff --git a/chrome/browser/tab_contents/navigation_metrics_recorder.h b/chrome/browser/tab_contents/navigation_metrics_recorder.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..729cd844d0b1e5ac2edef09f8d2e4bbd66a2e59c |
--- /dev/null |
+++ b/chrome/browser/tab_contents/navigation_metrics_recorder.h |
@@ -0,0 +1,24 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_ |
+#define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_ |
+ |
+#include "content/public/browser/web_contents_observer.h" |
+ |
+class NavigationMetricsRecorder : public content::WebContentsObserver { |
+ public: |
+ explicit NavigationMetricsRecorder(content::WebContents* web_contents); |
+ virtual ~NavigationMetricsRecorder(); |
+ |
+ private: |
+ // content::WebContentsObserver overrides: |
+ virtual void DidNavigateMainFrame( |
+ const content::LoadCommittedDetails& details, |
+ const content::FrameNavigateParams& params) OVERRIDE; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(NavigationMetricsRecorder); |
+}; |
+ |
+#endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_ |