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_USER_COLLECTOR_H_ | 5 #ifndef _CRASH_REPORTER_USER_COLLECTOR_H_ |
6 #define _CRASH_REPORTER_USER_COLLECTOR_H_ | 6 #define _CRASH_REPORTER_USER_COLLECTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 virtual ~UserCollector(); | 34 virtual ~UserCollector(); |
35 | 35 |
36 // Enable collection. | 36 // Enable collection. |
37 bool Enable() { return SetUpInternal(true); } | 37 bool Enable() { return SetUpInternal(true); } |
38 | 38 |
39 // Disable collection. | 39 // Disable collection. |
40 bool Disable() { return SetUpInternal(false); } | 40 bool Disable() { return SetUpInternal(false); } |
41 | 41 |
42 // Handle a specific user crash. Returns true on success. | 42 // Handle a specific user crash. Returns true on success. |
43 bool HandleCrash(int signal, int pid, const char *force_exec); | 43 bool HandleCrash(int signal, int pid, |
| 44 const char *kernel_supplied_name, |
| 45 const char *force_exec); |
44 | 46 |
45 // Set (override the default) core file pattern. | 47 // Set (override the default) core file pattern. |
46 void set_core_pattern_file(const std::string &pattern) { | 48 void set_core_pattern_file(const std::string &pattern) { |
47 core_pattern_file_ = pattern; | 49 core_pattern_file_ = pattern; |
48 } | 50 } |
49 | 51 |
50 // Set (override the default) core pipe limit file. | 52 // Set (override the default) core pipe limit file. |
51 void set_core_pipe_limit_file(const std::string &path) { | 53 void set_core_pipe_limit_file(const std::string &path) { |
52 core_pipe_limit_file_ = path; | 54 core_pipe_limit_file_ = path; |
53 } | 55 } |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 bool initialized_; | 119 bool initialized_; |
118 | 120 |
119 // String containing the current log of crash handling errors. | 121 // String containing the current log of crash handling errors. |
120 std::string error_log_; | 122 std::string error_log_; |
121 | 123 |
122 static const char *kUserId; | 124 static const char *kUserId; |
123 static const char *kGroupId; | 125 static const char *kGroupId; |
124 }; | 126 }; |
125 | 127 |
126 #endif // _CRASH_REPORTER_USER_COLLECTOR_H_ | 128 #endif // _CRASH_REPORTER_USER_COLLECTOR_H_ |
OLD | NEW |