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

Unified Diff: chrome/browser/tab_contents/navigation_metrics_recorder.h

Issue 10831048: Record navigations by URL scheme. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove PowerSaveBlocker Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/tab_contents/navigation_metrics_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | chrome/browser/tab_contents/navigation_metrics_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698