| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 bool CheckHasCapacity(const FilePath &crash_directory); | 82 bool CheckHasCapacity(const FilePath &crash_directory); |
| 83 | 83 |
| 84 // Read the given file of form [<key><separator><value>\n...] and return | 84 // Read the given file of form [<key><separator><value>\n...] and return |
| 85 // a map of its contents. | 85 // a map of its contents. |
| 86 bool ReadKeyValueFile(const FilePath &file, | 86 bool ReadKeyValueFile(const FilePath &file, |
| 87 char separator, | 87 char separator, |
| 88 std::map<std::string, std::string> *dictionary); | 88 std::map<std::string, std::string> *dictionary); |
| 89 | 89 |
| 90 // Write a file of metadata about crash. | 90 // Write a file of metadata about crash. |
| 91 void WriteCrashMetaData(const FilePath &meta_path, | 91 void WriteCrashMetaData(const FilePath &meta_path, |
| 92 const std::string &exec_name); | 92 const std::string &exec_name, |
| 93 const std::string &payload_path); |
| 93 | 94 |
| 94 CountCrashFunction count_crash_function_; | 95 CountCrashFunction count_crash_function_; |
| 95 IsFeedbackAllowedFunction is_feedback_allowed_function_; | 96 IsFeedbackAllowedFunction is_feedback_allowed_function_; |
| 96 SystemLogging *logger_; | 97 SystemLogging *logger_; |
| 97 const char *forced_crash_directory_; | 98 const char *forced_crash_directory_; |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 #endif // _CRASH_REPORTER_CRASH_COLLECTOR_H_ | 101 #endif // _CRASH_REPORTER_CRASH_COLLECTOR_H_ |
| OLD | NEW |