| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_STARTUP_METRIC_UTILS_STARTUP_METRIC_UTILS_H_ | 5 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_ |
| 6 #define COMPONENTS_STARTUP_METRIC_UTILS_STARTUP_METRIC_UTILS_H_ | 6 #define COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 | 11 |
| 12 // Utility functions to support metric collection for browser startup. | 12 // Utility functions to support metric collection for browser startup. |
| 13 | 13 |
| 14 namespace startup_metric_utils { | 14 namespace startup_metric_utils { |
| 15 | 15 |
| 16 // An enumeration of startup temperatures. This must be kept in sync with the | 16 // An enumeration of startup temperatures. This must be kept in sync with the |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // This method is expected to be called from the UI thread. | 97 // This method is expected to be called from the UI thread. |
| 98 base::Time MainEntryPointTime(); | 98 base::Time MainEntryPointTime(); |
| 99 | 99 |
| 100 // Returns the startup type. This is only currently supported on the Windows | 100 // Returns the startup type. This is only currently supported on the Windows |
| 101 // platform and will simply return UNCERTAIN_STARTUP_TYPE on other platforms. | 101 // platform and will simply return UNCERTAIN_STARTUP_TYPE on other platforms. |
| 102 // This is only valid after a call to RecordBrowserMainMessageLoopStart(). | 102 // This is only valid after a call to RecordBrowserMainMessageLoopStart(). |
| 103 StartupTemperature GetStartupTemperature(); | 103 StartupTemperature GetStartupTemperature(); |
| 104 | 104 |
| 105 } // namespace startup_metric_utils | 105 } // namespace startup_metric_utils |
| 106 | 106 |
| 107 #endif // COMPONENTS_STARTUP_METRIC_UTILS_STARTUP_METRIC_UTILS_H_ | 107 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_ |
| OLD | NEW |