| OLD | NEW |
| 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" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 MIME_TYPE_PDF, | 31 MIME_TYPE_PDF, |
| 32 MIME_TYPE_SVG, | 32 MIME_TYPE_SVG, |
| 33 MIME_TYPE_MAX | 33 MIME_TYPE_MAX |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 explicit NavigationMetricsRecorder(content::WebContents* web_contents); | 37 explicit NavigationMetricsRecorder(content::WebContents* web_contents); |
| 38 friend class content::WebContentsUserData<NavigationMetricsRecorder>; | 38 friend class content::WebContentsUserData<NavigationMetricsRecorder>; |
| 39 | 39 |
| 40 // content::WebContentsObserver overrides: | 40 // content::WebContentsObserver overrides: |
| 41 void DidNavigateMainFrame( | 41 void DidFinishNavigation( |
| 42 const content::LoadCommittedDetails& details, | 42 content::NavigationHandle* navigation_handle) override; |
| 43 const content::FrameNavigateParams& params) override; | |
| 44 | 43 |
| 45 rappor::RapporServiceImpl* rappor_service_; | 44 rappor::RapporServiceImpl* rappor_service_; |
| 46 | 45 |
| 47 DISALLOW_COPY_AND_ASSIGN(NavigationMetricsRecorder); | 46 DISALLOW_COPY_AND_ASSIGN(NavigationMetricsRecorder); |
| 48 }; | 47 }; |
| 49 | 48 |
| 50 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_ | 49 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_METRICS_RECORDER_H_ |
| OLD | NEW |