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

Side by Side Diff: chrome/browser/tab_contents/navigation_metrics_recorder.h

Issue 1581473002: Remove base/win/metro.{cc|h} and some associated code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 11 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 #include "content/public/browser/web_contents_user_data.h" 10 #include "content/public/browser/web_contents_user_data.h"
11 11
12 class NavigationMetricsRecorder 12 class NavigationMetricsRecorder
13 : public content::WebContentsObserver, 13 : public content::WebContentsObserver,
14 public content::WebContentsUserData<NavigationMetricsRecorder> { 14 public content::WebContentsUserData<NavigationMetricsRecorder> {
15 public: 15 public:
16 ~NavigationMetricsRecorder() override; 16 ~NavigationMetricsRecorder() override;
17 17
18 private: 18 private:
19 explicit NavigationMetricsRecorder(content::WebContents* web_contents); 19 explicit NavigationMetricsRecorder(content::WebContents* web_contents);
20 friend class content::WebContentsUserData<NavigationMetricsRecorder>; 20 friend class content::WebContentsUserData<NavigationMetricsRecorder>;
21 21
22 // content::WebContentsObserver overrides: 22 // content::WebContentsObserver overrides:
23 void DidNavigateMainFrame( 23 void DidNavigateMainFrame(
24 const content::LoadCommittedDetails& details, 24 const content::LoadCommittedDetails& details,
25 const content::FrameNavigateParams& params) override; 25 const content::FrameNavigateParams& params) override;
26 26
27 void DidStartLoading() override;
28
29 DISALLOW_COPY_AND_ASSIGN(NavigationMetricsRecorder); 27 DISALLOW_COPY_AND_ASSIGN(NavigationMetricsRecorder);
30 }; 28 };
31 29
32 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_ 30 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698