Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: chrome/browser/chromeos/boot_times_loader.h

Issue 409113002: Refactoring: get rid of notificataions in ParallelAuthenticator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
(...skipping 24 matching lines...) Expand all
35 class BootTimesLoader : public content::NotificationObserver, 35 class BootTimesLoader : public content::NotificationObserver,
36 public LoginEventRecorder::Delegate { 36 public LoginEventRecorder::Delegate {
37 public: 37 public:
38 BootTimesLoader(); 38 BootTimesLoader();
39 virtual ~BootTimesLoader(); 39 virtual ~BootTimesLoader();
40 40
41 static BootTimesLoader* Get(); 41 static BootTimesLoader* Get();
42 42
43 // LoginEventRecorder::Delegate override. 43 // LoginEventRecorder::Delegate override.
44 44
45 // Add a time marker for login. A timeline will be dumped to 45 // Add a time marker for login. A timeline will be dumped to
Nikita (slow) 2014/07/22 15:50:26 nit: move this comment to login_event_recorder.h n
Denis Kuznetsov (DE-MUC) 2014/08/20 13:50:19 Done.
46 // /tmp/login-times-sent after login is done. If |send_to_uma| is true 46 // /tmp/login-times-sent after login is done. If |send_to_uma| is true
47 // the time between this marker and the last will be sent to UMA with 47 // the time between this marker and the last will be sent to UMA with
48 // the identifier BootTime.|marker_name|. 48 // the identifier BootTime.|marker_name|.
49 virtual void AddLoginTimeMarker(const std::string& marker_name, 49 virtual void AddLoginTimeMarker(const std::string& marker_name,
50 bool send_to_uma) OVERRIDE; 50 bool send_to_uma) OVERRIDE;
51 51
52 virtual void RecordAuthenticationSuccess() OVERRIDE;
stevenjb 2014/07/22 16:11:04 nit: WS
Denis Kuznetsov (DE-MUC) 2014/08/20 13:50:19 Done.
53 virtual void RecordAuthenticationFailure() OVERRIDE;
54
52 // Add a time marker for logout. A timeline will be dumped to 55 // Add a time marker for logout. A timeline will be dumped to
53 // /tmp/logout-times-sent after logout is done. If |send_to_uma| is true 56 // /tmp/logout-times-sent after logout is done. If |send_to_uma| is true
54 // the time between this marker and the last will be sent to UMA with 57 // the time between this marker and the last will be sent to UMA with
55 // the identifier ShutdownTime.|marker_name|. 58 // the identifier ShutdownTime.|marker_name|.
56 void AddLogoutTimeMarker(const std::string& marker_name, bool send_to_uma); 59 void AddLogoutTimeMarker(const std::string& marker_name, bool send_to_uma);
57 60
58 // Records current uptime and disk usage for metrics use. 61 // Records current uptime and disk usage for metrics use.
59 // Posts task to file thread. 62 // Posts task to file thread.
60 // name will be used as part of file names in /tmp. 63 // name will be used as part of file names in /tmp.
61 // Existing stats files will not be overwritten. 64 // Existing stats files will not be overwritten.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool login_done_; 191 bool login_done_;
189 192
190 bool restart_requested_; 193 bool restart_requested_;
191 194
192 DISALLOW_COPY_AND_ASSIGN(BootTimesLoader); 195 DISALLOW_COPY_AND_ASSIGN(BootTimesLoader);
193 }; 196 };
194 197
195 } // namespace chromeos 198 } // namespace chromeos
196 199
197 #endif // CHROME_BROWSER_CHROMEOS_BOOT_TIMES_LOADER_H_ 200 #endif // CHROME_BROWSER_CHROMEOS_BOOT_TIMES_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698