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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/chromeos/boot_times_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/chromeos/boot_times_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698