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

Side by Side Diff: unclean_shutdown_collector.h

Issue 3644007: Crash reporter: collect suspend and resume info from power manager (Closed) Base URL: http://git.chromium.org/git/crash-reporter.git
Patch Set: Cleanup of old files Created 10 years, 2 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 | « no previous file | unclean_shutdown_collector.cc » ('j') | unclean_shutdown_collector.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 _CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_ 5 #ifndef _CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_
6 #define _CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_ 6 #define _CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // Disable collection - signal that the system has been shutdown cleanly. 27 // Disable collection - signal that the system has been shutdown cleanly.
28 bool Disable(); 28 bool Disable();
29 29
30 private: 30 private:
31 friend class UncleanShutdownCollectorTest; 31 friend class UncleanShutdownCollectorTest;
32 FRIEND_TEST(UncleanShutdownCollectorTest, EnableCannotWrite); 32 FRIEND_TEST(UncleanShutdownCollectorTest, EnableCannotWrite);
33 33
34 bool DeleteUncleanShutdownFile(); 34 bool DeleteUncleanShutdownFile();
35 35
36 // Check and log modification time on file
37 bool ReadModificationTime(const char *file_string);
38
36 const char *unclean_shutdown_file_; 39 const char *unclean_shutdown_file_;
37 }; 40 };
38 41
39 #endif // _CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_ 42 #endif // _CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | unclean_shutdown_collector.cc » ('j') | unclean_shutdown_collector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698