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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // Add non-standard meta data to the crash metadata file. Call | 124 // Add non-standard meta data to the crash metadata file. Call |
125 // before calling WriteCrashMetaData. Key must not contain "=" or | 125 // before calling WriteCrashMetaData. Key must not contain "=" or |
126 // "\n" characters. Value must not contain "\n" characters. | 126 // "\n" characters. Value must not contain "\n" characters. |
127 void AddCrashMetaData(const std::string &key, const std::string &value); | 127 void AddCrashMetaData(const std::string &key, const std::string &value); |
128 | 128 |
129 // Write a file of metadata about crash. | 129 // Write a file of metadata about crash. |
130 void WriteCrashMetaData(const FilePath &meta_path, | 130 void WriteCrashMetaData(const FilePath &meta_path, |
131 const std::string &exec_name, | 131 const std::string &exec_name, |
132 const std::string &payload_path); | 132 const std::string &payload_path); |
133 | 133 |
| 134 // Returns true if the a crash test is currently running. |
| 135 bool IsCrashTestInProgress(); |
| 136 |
134 CountCrashFunction count_crash_function_; | 137 CountCrashFunction count_crash_function_; |
135 IsFeedbackAllowedFunction is_feedback_allowed_function_; | 138 IsFeedbackAllowedFunction is_feedback_allowed_function_; |
136 std::string extra_metadata_; | 139 std::string extra_metadata_; |
137 const char *forced_crash_directory_; | 140 const char *forced_crash_directory_; |
138 const char *lsb_release_; | 141 const char *lsb_release_; |
139 }; | 142 }; |
140 | 143 |
141 #endif // _CRASH_REPORTER_CRASH_COLLECTOR_H_ | 144 #endif // _CRASH_REPORTER_CRASH_COLLECTOR_H_ |
OLD | NEW |