| 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_BREAKPAD_BREAKPAD_CLIENT_H_ | 5 #ifndef COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_ |
| 6 #define COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_ | 6 #define COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // Register all of the potential crash keys that can be sent to the crash | 113 // Register all of the potential crash keys that can be sent to the crash |
| 114 // reporting server. Returns the size of the union of all keys. | 114 // reporting server. Returns the size of the union of all keys. |
| 115 virtual size_t RegisterCrashKeys(); | 115 virtual size_t RegisterCrashKeys(); |
| 116 | 116 |
| 117 // Returns true if running in unattended mode (for automated testing). | 117 // Returns true if running in unattended mode (for automated testing). |
| 118 virtual bool IsRunningUnattended(); | 118 virtual bool IsRunningUnattended(); |
| 119 | 119 |
| 120 #if defined(OS_WIN) || defined(OS_MACOSX) | 120 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 121 // Returns true if the user has given consent to collect stats. | 121 // Returns true if the user has given consent to collect stats. |
| 122 virtual bool GetCollectStatsConsent(); | 122 virtual bool GetCollectStatsConsent(); |
| 123 |
| 124 // Returns true if breakpad is enforced via management policies. In that |
| 125 // case, |breakpad_enabled| is set to the value enforced by policies. |
| 126 virtual bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled); |
| 123 #endif | 127 #endif |
| 124 | 128 |
| 125 #if defined(OS_ANDROID) | 129 #if defined(OS_ANDROID) |
| 126 // Returns the descriptor key of the android minidump global descriptor. | 130 // Returns the descriptor key of the android minidump global descriptor. |
| 127 virtual int GetAndroidMinidumpDescriptor(); | 131 virtual int GetAndroidMinidumpDescriptor(); |
| 128 #endif | 132 #endif |
| 129 | 133 |
| 130 #if defined(OS_MACOSX) | 134 #if defined(OS_MACOSX) |
| 131 // Install additional breakpad filter callbacks. | 135 // Install additional breakpad filter callbacks. |
| 132 virtual void InstallAdditionalFilters(BreakpadRef breakpad); | 136 virtual void InstallAdditionalFilters(BreakpadRef breakpad); |
| 133 | |
| 134 // Returns true if breakpad is enforced via management policies. | |
| 135 virtual bool ReportingIsEnforcedByPolicy(); | |
| 136 #endif | 137 #endif |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 } // namespace breakpad | 140 } // namespace breakpad |
| 140 | 141 |
| 141 #endif // COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_ | 142 #endif // COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_ |
| OLD | NEW |