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