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_PERFORMANCE_MONITOR_STARTUP_TIMER_H_ | 5 #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_STARTUP_TIMER_H_ |
6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_STARTUP_TIMER_H_ | 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_STARTUP_TIMER_H_ |
7 | 7 |
8 #include "base/time.h" | 8 #include "base/time/time.h" |
9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
11 | 11 |
12 namespace performance_monitor { | 12 namespace performance_monitor { |
13 | 13 |
14 // This class is responsible for recording the startup and session restore times | 14 // This class is responsible for recording the startup and session restore times |
15 // (if applicable) for PerformanceMonitor. This allows us to initialize this | 15 // (if applicable) for PerformanceMonitor. This allows us to initialize this |
16 // relatively small object early in the startup process, and start the whole of | 16 // relatively small object early in the startup process, and start the whole of |
17 // PerformanceMonitor at a later time. StartupTimer will record the times and | 17 // PerformanceMonitor at a later time. StartupTimer will record the times and |
18 // insert them into PerformanceMonitor's database. | 18 // insert them into PerformanceMonitor's database. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // The singleton of this class. | 95 // The singleton of this class. |
96 static StartupTimer* g_startup_timer_; | 96 static StartupTimer* g_startup_timer_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(StartupTimer); | 98 DISALLOW_COPY_AND_ASSIGN(StartupTimer); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace performance_monitor | 101 } // namespace performance_monitor |
102 | 102 |
103 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_STARTUP_TIMER_H_ | 103 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_STARTUP_TIMER_H_ |
OLD | NEW |