OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_BOOT_TIMES_LOADER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_BOOT_TIMES_LOADER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_BOOT_TIMES_LOADER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_BOOT_TIMES_LOADER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Records the data previously saved by SaveChromeMainStats(), using the | 95 // Records the data previously saved by SaveChromeMainStats(), using the |
96 // file thread. Existing stats files will not be overwritten. | 96 // file thread. Existing stats files will not be overwritten. |
97 void RecordChromeMainStats(); | 97 void RecordChromeMainStats(); |
98 | 98 |
99 // Records the time that a login was attempted. This will overwrite any | 99 // Records the time that a login was attempted. This will overwrite any |
100 // previous login attempt times. | 100 // previous login attempt times. |
101 void RecordLoginAttempted(); | 101 void RecordLoginAttempted(); |
102 | 102 |
103 // NotificationObserver implementation. | 103 // NotificationObserver implementation. |
104 virtual void Observe(NotificationType type, | 104 virtual void Observe(int type, |
105 const NotificationSource& source, | 105 const NotificationSource& source, |
106 const NotificationDetails& details); | 106 const NotificationDetails& details); |
107 | 107 |
108 // Writes the logout times to a /tmp/logout-times-sent. Unlike login | 108 // Writes the logout times to a /tmp/logout-times-sent. Unlike login |
109 // times, we manually call this function for logout times, as we cannot | 109 // times, we manually call this function for logout times, as we cannot |
110 // rely on notification service to tell when the logout is done. | 110 // rely on notification service to tell when the logout is done. |
111 void WriteLogoutTimes(); | 111 void WriteLogoutTimes(); |
112 | 112 |
113 private: | 113 private: |
114 // BootTimesLoader calls into the Backend on the file thread to load | 114 // BootTimesLoader calls into the Backend on the file thread to load |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 std::vector<TimeMarker> login_time_markers_; | 170 std::vector<TimeMarker> login_time_markers_; |
171 std::vector<TimeMarker> logout_time_markers_; | 171 std::vector<TimeMarker> logout_time_markers_; |
172 | 172 |
173 DISALLOW_COPY_AND_ASSIGN(BootTimesLoader); | 173 DISALLOW_COPY_AND_ASSIGN(BootTimesLoader); |
174 }; | 174 }; |
175 | 175 |
176 } // namespace chromeos | 176 } // namespace chromeos |
177 | 177 |
178 #endif // CHROME_BROWSER_CHROMEOS_BOOT_TIMES_LOADER_H_ | 178 #endif // CHROME_BROWSER_CHROMEOS_BOOT_TIMES_LOADER_H_ |
OLD | NEW |