| 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_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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/atomic_sequence_num.h" | 11 #include "base/atomic_sequence_num.h" |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "chrome/browser/cancelable_request.h" | 15 #include "chrome/browser/common/cancelable_request.h" |
| 16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
| 18 #include "content/public/browser/render_widget_host.h" | 18 #include "content/public/browser/render_widget_host.h" |
| 19 | 19 |
| 20 namespace chromeos { | 20 namespace chromeos { |
| 21 | 21 |
| 22 // BootTimesLoader loads the bootimes of Chrome OS from the file system. | 22 // BootTimesLoader loads the bootimes of Chrome OS from the file system. |
| 23 // Loading is done asynchronously on the file thread. Once loaded, | 23 // Loading is done asynchronously on the file thread. Once loaded, |
| 24 // BootTimesLoader calls back to a method of your choice with the boot times. | 24 // BootTimesLoader calls back to a method of your choice with the boot times. |
| 25 // To use BootTimesLoader do the following: | 25 // To use BootTimesLoader do the following: |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 std::vector<TimeMarker> login_time_markers_; | 180 std::vector<TimeMarker> login_time_markers_; |
| 181 std::vector<TimeMarker> logout_time_markers_; | 181 std::vector<TimeMarker> logout_time_markers_; |
| 182 std::set<content::RenderWidgetHost*> render_widget_hosts_loading_; | 182 std::set<content::RenderWidgetHost*> render_widget_hosts_loading_; |
| 183 | 183 |
| 184 DISALLOW_COPY_AND_ASSIGN(BootTimesLoader); | 184 DISALLOW_COPY_AND_ASSIGN(BootTimesLoader); |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 } // namespace chromeos | 187 } // namespace chromeos |
| 188 | 188 |
| 189 #endif // CHROME_BROWSER_CHROMEOS_BOOT_TIMES_LOADER_H_ | 189 #endif // CHROME_BROWSER_CHROMEOS_BOOT_TIMES_LOADER_H_ |
| OLD | NEW |