OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium 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 COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ | 5 #ifndef COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ |
6 #define COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ | 6 #define COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 // Register all of the potential crash keys that can be sent to the crash | 131 // Register all of the potential crash keys that can be sent to the crash |
132 // reporting server. Returns the size of the union of all keys. | 132 // reporting server. Returns the size of the union of all keys. |
133 virtual size_t RegisterCrashKeys(); | 133 virtual size_t RegisterCrashKeys(); |
134 | 134 |
135 // Returns true if running in unattended mode (for automated testing). | 135 // Returns true if running in unattended mode (for automated testing). |
136 virtual bool IsRunningUnattended(); | 136 virtual bool IsRunningUnattended(); |
137 | 137 |
138 // Returns true if the user has given consent to collect stats. | 138 // Returns true if the user has given consent to collect stats. |
139 virtual bool GetCollectStatsConsent(); | 139 virtual bool GetCollectStatsConsent(); |
140 | 140 |
141 // Returns false if the client is affected by sampling, and shouldn't report | |
142 // crashes. Otherwise, returns true. | |
Alexei Svitkine (slow)
2016/08/10 21:49:33
Please expand comment to mention interaction with
jwd
2016/08/11 21:41:03
Done.
| |
143 virtual bool GetCollectStatsInSample(); | |
144 | |
141 #if defined(OS_WIN) || defined(OS_MACOSX) | 145 #if defined(OS_WIN) || defined(OS_MACOSX) |
142 // Returns true if crash reporting is enforced via management policies. In | 146 // Returns true if crash reporting is enforced via management policies. In |
143 // that case, |breakpad_enabled| is set to the value enforced by policies. | 147 // that case, |breakpad_enabled| is set to the value enforced by policies. |
144 virtual bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled); | 148 virtual bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled); |
145 #endif | 149 #endif |
146 | 150 |
147 #if defined(OS_ANDROID) | 151 #if defined(OS_ANDROID) |
148 // Returns the descriptor key of the android minidump global descriptor. | 152 // Returns the descriptor key of the android minidump global descriptor. |
149 virtual int GetAndroidMinidumpDescriptor(); | 153 virtual int GetAndroidMinidumpDescriptor(); |
150 | 154 |
151 // Returns true if breakpad microdumps should be enabled. This orthogonal to | 155 // Returns true if breakpad microdumps should be enabled. This orthogonal to |
152 // the standard minidump uploader (which depends on the user consent). | 156 // the standard minidump uploader (which depends on the user consent). |
153 virtual bool ShouldEnableBreakpadMicrodumps(); | 157 virtual bool ShouldEnableBreakpadMicrodumps(); |
154 #endif | 158 #endif |
155 | 159 |
156 // Returns true if breakpad should run in the given process type. | 160 // Returns true if breakpad should run in the given process type. |
157 virtual bool EnableBreakpadForProcess(const std::string& process_type); | 161 virtual bool EnableBreakpadForProcess(const std::string& process_type); |
158 }; | 162 }; |
159 | 163 |
160 } // namespace crash_reporter | 164 } // namespace crash_reporter |
161 | 165 |
162 #endif // COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ | 166 #endif // COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ |
OLD | NEW |