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/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
10 | 11 |
11 namespace content { | 12 namespace content { |
12 class WebContents; | 13 class WebContents; |
13 } // namespace content | 14 } // namespace content |
14 | 15 |
15 // Measures start up performance of the first active web contents. | 16 // Measures start up performance of the first active web contents. |
16 // This class is declared on all platforms, but only defined on non-Android | 17 // This class is declared on all platforms, but only defined on non-Android |
17 // platforms. Android code should not call any non-trivial methods on this | 18 // platforms. Android code should not call any non-trivial methods on this |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 78 |
78 // Whether core metric collection is complete. Used to keep reporting old | 79 // Whether core metric collection is complete. Used to keep reporting old |
79 // stats post abandon to give us an intra-milestone comparison basis initially | 80 // stats post abandon to give us an intra-milestone comparison basis initially |
80 // between the old and new stats. TODO(gab): Remove this in M49. | 81 // between the old and new stats. TODO(gab): Remove this in M49. |
81 bool finished_; | 82 bool finished_; |
82 | 83 |
83 DISALLOW_COPY_AND_ASSIGN(FirstWebContentsProfiler); | 84 DISALLOW_COPY_AND_ASSIGN(FirstWebContentsProfiler); |
84 }; | 85 }; |
85 | 86 |
86 #endif // CHROME_BROWSER_METRICS_FIRST_WEB_CONTENTS_PROFILER_H_ | 87 #endif // CHROME_BROWSER_METRICS_FIRST_WEB_CONTENTS_PROFILER_H_ |
OLD | NEW |