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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 #if defined(OS_WIN) | 137 #if defined(OS_WIN) |
138 virtual bool GetCrashMetricsLocation(base::string16* metrics_dir); | 138 virtual bool GetCrashMetricsLocation(base::string16* metrics_dir); |
139 #else | 139 #else |
140 virtual bool GetCrashMetricsLocation(base::FilePath* metrics_dir); | 140 virtual bool GetCrashMetricsLocation(base::FilePath* metrics_dir); |
141 #endif | 141 #endif |
142 | 142 |
143 // Register all of the potential crash keys that can be sent to the crash | 143 // Register all of the potential crash keys that can be sent to the crash |
144 // reporting server. Returns the size of the union of all keys. | 144 // reporting server. Returns the size of the union of all keys. |
145 virtual size_t RegisterCrashKeys(); | 145 virtual size_t RegisterCrashKeys(); |
146 | 146 |
147 virtual bool UseCrashKeysWhiteList(); | |
Robert Sesek
2017/03/02 22:29:40
How about ShouldWhiteListCrashKeys() ?
Robert Sesek
2017/03/02 23:10:49
On second thought, your name is better. Ignore.
| |
148 | |
149 // Returns a NULL-terminated array of crash keys to whitelist. | |
150 virtual const char** GetWhiteListedCrashKeys(); | |
Robert Sesek
2017/03/02 22:29:40
And GetCrashKeyWhiteList().
gsennton
2017/03/03 00:09:32
Done.
| |
151 | |
147 // Returns true if running in unattended mode (for automated testing). | 152 // Returns true if running in unattended mode (for automated testing). |
148 virtual bool IsRunningUnattended(); | 153 virtual bool IsRunningUnattended(); |
149 | 154 |
150 // Returns true if the user has given consent to collect stats. | 155 // Returns true if the user has given consent to collect stats. |
151 virtual bool GetCollectStatsConsent(); | 156 virtual bool GetCollectStatsConsent(); |
152 | 157 |
153 // Returns true if the client is currently in the chosen sample that will | 158 // Returns true if the client is currently in the chosen sample that will |
154 // report stats and crashes. Crashes should only be reported if this function | 159 // report stats and crashes. Crashes should only be reported if this function |
155 // returns true and GetCollectStatsConsent returns true. | 160 // returns true and GetCollectStatsConsent returns true. |
156 virtual bool GetCollectStatsInSample(); | 161 virtual bool GetCollectStatsInSample(); |
(...skipping 17 matching lines...) Expand all Loading... | |
174 virtual bool ShouldEnableBreakpadMicrodumps(); | 179 virtual bool ShouldEnableBreakpadMicrodumps(); |
175 #endif | 180 #endif |
176 | 181 |
177 // Returns true if breakpad should run in the given process type. | 182 // Returns true if breakpad should run in the given process type. |
178 virtual bool EnableBreakpadForProcess(const std::string& process_type); | 183 virtual bool EnableBreakpadForProcess(const std::string& process_type); |
179 }; | 184 }; |
180 | 185 |
181 } // namespace crash_reporter | 186 } // namespace crash_reporter |
182 | 187 |
183 #endif // COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ | 188 #endif // COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ |
OLD | NEW |