| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_METRICS_FIRST_WEB_CONTENTS_PROFILER_H_ | 5 #ifndef CHROME_BROWSER_METRICS_FIRST_WEB_CONTENTS_PROFILER_H_ |
| 6 #define CHROME_BROWSER_METRICS_FIRST_WEB_CONTENTS_PROFILER_H_ | 6 #define CHROME_BROWSER_METRICS_FIRST_WEB_CONTENTS_PROFILER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 // Whether an attempt was made to collect the "MainFrameLoad" metric. | 83 // Whether an attempt was made to collect the "MainFrameLoad" metric. |
| 84 bool collected_load_metric_; | 84 bool collected_load_metric_; |
| 85 | 85 |
| 86 // Whether an attempt was made to collect the "MainNavigationStart" metric. | 86 // Whether an attempt was made to collect the "MainNavigationStart" metric. |
| 87 bool collected_main_navigation_start_metric_; | 87 bool collected_main_navigation_start_metric_; |
| 88 | 88 |
| 89 // Whether an attempt was made to collect the "MainNavigationFinished" metric. | 89 // Whether an attempt was made to collect the "MainNavigationFinished" metric. |
| 90 bool collected_main_navigation_finished_metric_; | 90 bool collected_main_navigation_finished_metric_; |
| 91 | 91 |
| 92 // Whether core metric collection is complete. Used to keep reporting old |
| 93 // stats post abandon to give us an intra-milestone comparison basis initially |
| 94 // between the old and new stats. TODO(gab): Remove this in M49. |
| 95 bool finished_; |
| 96 |
| 92 // |delegate_| owns |this|. | 97 // |delegate_| owns |this|. |
| 93 Delegate* delegate_; | 98 Delegate* delegate_; |
| 94 | 99 |
| 95 // Histogram that keeps track of response times for the watched thread. | 100 // Histogram that keeps track of response times for the watched thread. |
| 96 base::HistogramBase* responsiveness_histogram_; | 101 base::HistogramBase* responsiveness_histogram_; |
| 97 | 102 |
| 98 // Histogram that keeps track of response times for the watched thread. | 103 // Histogram that keeps track of response times for the watched thread. |
| 99 base::HistogramBase* responsiveness_1sec_histogram_; | 104 base::HistogramBase* responsiveness_1sec_histogram_; |
| 100 | 105 |
| 101 // Histogram that keeps track of response times for the watched thread. | 106 // Histogram that keeps track of response times for the watched thread. |
| 102 base::HistogramBase* responsiveness_10sec_histogram_; | 107 base::HistogramBase* responsiveness_10sec_histogram_; |
| 103 | 108 |
| 104 // Histogram that keeps track of response times for the watched thread. | 109 // Histogram that keeps track of response times for the watched thread. |
| 105 base::HistogramBase* unresponsiveness_histogram_; | 110 base::HistogramBase* unresponsiveness_histogram_; |
| 106 | 111 |
| 107 // Histogram that keeps track of response times for the watched thread. | 112 // Histogram that keeps track of response times for the watched thread. |
| 108 base::HistogramBase* unresponsiveness_1sec_histogram_; | 113 base::HistogramBase* unresponsiveness_1sec_histogram_; |
| 109 | 114 |
| 110 // Histogram that keeps track of response times for the watched thread. | 115 // Histogram that keeps track of response times for the watched thread. |
| 111 base::HistogramBase* unresponsiveness_10sec_histogram_; | 116 base::HistogramBase* unresponsiveness_10sec_histogram_; |
| 112 | 117 |
| 113 DISALLOW_COPY_AND_ASSIGN(FirstWebContentsProfiler); | 118 DISALLOW_COPY_AND_ASSIGN(FirstWebContentsProfiler); |
| 114 }; | 119 }; |
| 115 | 120 |
| 116 #endif // CHROME_BROWSER_METRICS_FIRST_WEB_CONTENTS_PROFILER_H_ | 121 #endif // CHROME_BROWSER_METRICS_FIRST_WEB_CONTENTS_PROFILER_H_ |
| OLD | NEW |