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

Unified 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: Reduced to two files and w/o reading timestamps Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | unclean_shutdown_collector.cc » ('j') | unclean_shutdown_collector.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unclean_shutdown_collector.h
diff --git a/unclean_shutdown_collector.h b/unclean_shutdown_collector.h
index e7d8cef95948793b77e70bed873812a36a558ba0..3aac8d3e55449103effe189ddcb67f1f2addfb92 100644
--- a/unclean_shutdown_collector.h
+++ b/unclean_shutdown_collector.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/file_path.h"
+#include "base/time.h"
kmixter1 2010/11/19 23:43:27 This isn't used here, please move it to the cc.
#include "crash-reporter/crash_collector.h"
#include "gtest/gtest_prod.h" // for FRIEND_TEST
@@ -33,7 +34,14 @@ class UncleanShutdownCollector : public CrashCollector {
bool DeleteUncleanShutdownFile();
+ // Check for unclean shutdown due to battery running out by analyzing powerd
+ // trace files.
+ bool CheckForDeadBatteryUncleanShutdown();
+
const char *unclean_shutdown_file_;
+ const FilePath powerd_trace_path_;
+ const FilePath powerd_suspend_file_;
+ const FilePath powerd_low_battery_file_;
};
#endif // _CRASH_REPORTER_UNCLEAN_SHUTDOWN_COLLECTOR_H_
« 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