OLD | NEW |
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_CRASH_COLLECTOR_H_ | 5 #ifndef _CRASH_REPORTER_CRASH_COLLECTOR_H_ |
6 #define _CRASH_REPORTER_CRASH_COLLECTOR_H_ | 6 #define _CRASH_REPORTER_CRASH_COLLECTOR_H_ |
7 | 7 |
8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // Add non-standard meta data to the crash metadata file. Call | 131 // Add non-standard meta data to the crash metadata file. Call |
132 // before calling WriteCrashMetaData. Key must not contain "=" or | 132 // before calling WriteCrashMetaData. Key must not contain "=" or |
133 // "\n" characters. Value must not contain "\n" characters. | 133 // "\n" characters. Value must not contain "\n" characters. |
134 void AddCrashMetaData(const std::string &key, const std::string &value); | 134 void AddCrashMetaData(const std::string &key, const std::string &value); |
135 | 135 |
136 // Write a file of metadata about crash. | 136 // Write a file of metadata about crash. |
137 void WriteCrashMetaData(const FilePath &meta_path, | 137 void WriteCrashMetaData(const FilePath &meta_path, |
138 const std::string &exec_name, | 138 const std::string &exec_name, |
139 const std::string &payload_path); | 139 const std::string &payload_path); |
140 | 140 |
| 141 // Returns true if the a crash test is currently running. |
| 142 bool IsCrashTestInProgress(); |
| 143 |
141 CountCrashFunction count_crash_function_; | 144 CountCrashFunction count_crash_function_; |
142 IsFeedbackAllowedFunction is_feedback_allowed_function_; | 145 IsFeedbackAllowedFunction is_feedback_allowed_function_; |
143 SystemLogging *logger_; | 146 SystemLogging *logger_; |
144 std::string extra_metadata_; | 147 std::string extra_metadata_; |
145 const char *forced_crash_directory_; | 148 const char *forced_crash_directory_; |
146 const char *lsb_release_; | 149 const char *lsb_release_; |
147 }; | 150 }; |
148 | 151 |
149 #endif // _CRASH_REPORTER_CRASH_COLLECTOR_H_ | 152 #endif // _CRASH_REPORTER_CRASH_COLLECTOR_H_ |
OLD | NEW |