Chromium Code Reviews| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 #endif | 121 #endif |
| 122 | 122 |
| 123 // The location where minidump files should be written. Returns true if | 123 // The location where minidump files should be written. Returns true if |
| 124 // |crash_dir| was set. | 124 // |crash_dir| was set. |
| 125 #if defined(OS_WIN) | 125 #if defined(OS_WIN) |
| 126 virtual bool GetCrashDumpLocation(base::string16* crash_dir); | 126 virtual bool GetCrashDumpLocation(base::string16* crash_dir); |
| 127 #else | 127 #else |
| 128 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir); | 128 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir); |
| 129 #endif | 129 #endif |
| 130 | 130 |
| 131 // The location where metrics files should be written. Returns true if | |
| 132 // |metrics_dir| was set. | |
| 133 #if defined(OS_WIN) | |
|
bcwhite
2016/09/14 13:16:12
Why can't Windows use FilePath?
scottmg
2016/09/14 20:37:02
(This is copied from GetCrashDumpLocation() above.
bcwhite
2016/09/14 21:11:29
Makes sense. Add to comment?
scottmg
2016/09/14 22:12:30
Done.
| |
| 134 virtual bool GetCrashMetricsLocation(base::string16* metrics_dir); | |
| 135 #else | |
| 136 virtual bool GetCrashMetricsLocation(base::FilePath* metrics_dir); | |
| 137 #endif | |
| 138 | |
| 131 // Register all of the potential crash keys that can be sent to the crash | 139 // 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. | 140 // reporting server. Returns the size of the union of all keys. |
| 133 virtual size_t RegisterCrashKeys(); | 141 virtual size_t RegisterCrashKeys(); |
| 134 | 142 |
| 135 // Returns true if running in unattended mode (for automated testing). | 143 // Returns true if running in unattended mode (for automated testing). |
| 136 virtual bool IsRunningUnattended(); | 144 virtual bool IsRunningUnattended(); |
| 137 | 145 |
| 138 // Returns true if the user has given consent to collect stats. | 146 // Returns true if the user has given consent to collect stats. |
| 139 virtual bool GetCollectStatsConsent(); | 147 virtual bool GetCollectStatsConsent(); |
| 140 | 148 |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 162 virtual bool ShouldEnableBreakpadMicrodumps(); | 170 virtual bool ShouldEnableBreakpadMicrodumps(); |
| 163 #endif | 171 #endif |
| 164 | 172 |
| 165 // Returns true if breakpad should run in the given process type. | 173 // Returns true if breakpad should run in the given process type. |
| 166 virtual bool EnableBreakpadForProcess(const std::string& process_type); | 174 virtual bool EnableBreakpadForProcess(const std::string& process_type); |
| 167 }; | 175 }; |
| 168 | 176 |
| 169 } // namespace crash_reporter | 177 } // namespace crash_reporter |
| 170 | 178 |
| 171 #endif // COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ | 179 #endif // COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ |
| OLD | NEW |