Index: chrome/browser/chromeos/boot_times_loader.h |
diff --git a/chrome/browser/chromeos/boot_times_loader.h b/chrome/browser/chromeos/boot_times_loader.h |
index 854dccdabee2898f80009517cdd8fca85ef657b2..6d3934ece02a5963478d7f50076c3a8a584dc1fd 100644 |
--- a/chrome/browser/chromeos/boot_times_loader.h |
+++ b/chrome/browser/chromeos/boot_times_loader.h |
@@ -17,6 +17,8 @@ |
#include "content/public/browser/notification_registrar.h" |
#include "content/public/browser/render_widget_host.h" |
+class PrefService; |
+ |
namespace chromeos { |
// BootTimesLoader loads the bootimes of Chrome OS from the file system. |
@@ -82,6 +84,10 @@ class BootTimesLoader : public content::NotificationObserver { |
// Mark that WriteLogoutTimes should handle restart. |
void set_restart_requested() { restart_requested_ = true; } |
+ void OnBoot(); |
Nikita (slow)
2014/05/30 07:07:03
nit: Comment is missing.
Alexander Alekseev
2014/05/30 18:44:54
Done.
|
+ |
+ void OnLogoutStarted(PrefService* state); |
Nikita (slow)
2014/05/30 07:07:03
nit: Comment is missing.
Alexander Alekseev
2014/05/30 18:44:54
Done.
|
+ |
private: |
// BootTimesLoader calls into the Backend on the file thread to load |
// the boot times. |
@@ -121,19 +127,28 @@ class BootTimesLoader : public content::NotificationObserver { |
struct Stats { |
public: |
+ std::string SerializeToString() const; |
+ static Stats DeserializeFromString(const std::string& value); |
+ |
std::string uptime; |
std::string disk; |
}; |
static void RecordStats( |
const std::string& name, const Stats& stats); |
+ void RecordStatsWithCallback(const std::string& name, |
+ const Stats& stats, |
+ const base::Closure& callback); |
static Stats GetCurrentStats(); |
+ static std::string GetUptimeSeconds(const Stats& stats); |
static void WriteTimes(const std::string base_name, |
const std::string uma_name, |
const std::string uma_prefix, |
std::vector<TimeMarker> login_times); |
static void AddMarker(std::vector<TimeMarker>* vector, TimeMarker marker); |
+ static void ClearLogoutStartedLastPreference(); |
Nikita (slow)
2014/05/30 07:07:03
nit: Comment is missing.
Alexander Alekseev
2014/05/30 18:44:54
Done.
|
+ |
// Used to hold the stats at main(). |
Stats chrome_main_stats_; |
scoped_refptr<Backend> backend_; |