| 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_APP_CRASH_REPORTER_CLIENT_H_ | 5 #ifndef COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ |
| 6 #define COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ | 6 #define COMPONENTS_CRASH_APP_CRASH_REPORTER_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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 #if defined(OS_WIN) || defined(OS_MACOSX) | 129 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 130 // Returns true if crash reporting is enforced via management policies. In | 130 // Returns true if crash reporting is enforced via management policies. In |
| 131 // that case, |breakpad_enabled| is set to the value enforced by policies. | 131 // that case, |breakpad_enabled| is set to the value enforced by policies. |
| 132 virtual bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled); | 132 virtual bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled); |
| 133 #endif | 133 #endif |
| 134 | 134 |
| 135 #if defined(OS_ANDROID) | 135 #if defined(OS_ANDROID) |
| 136 // Returns the descriptor key of the android minidump global descriptor. | 136 // Returns the descriptor key of the android minidump global descriptor. |
| 137 virtual int GetAndroidMinidumpDescriptor(); | 137 virtual int GetAndroidMinidumpDescriptor(); |
| 138 |
| 139 // Returns true if breakpad microdumps should be enabled. This orthogonal to |
| 140 // the standard minidump uploader (which depends on the user consent). |
| 141 virtual bool ShouldEnableBreakpadMicrodumps(); |
| 138 #endif | 142 #endif |
| 139 | 143 |
| 140 #if defined(OS_MACOSX) | 144 #if defined(OS_MACOSX) |
| 141 // Install additional breakpad filter callbacks. | 145 // Install additional breakpad filter callbacks. |
| 142 virtual void InstallAdditionalFilters(BreakpadRef breakpad); | 146 virtual void InstallAdditionalFilters(BreakpadRef breakpad); |
| 143 #endif | 147 #endif |
| 144 | 148 |
| 145 // Returns true if breakpad should run in the given process type. | 149 // Returns true if breakpad should run in the given process type. |
| 146 virtual bool EnableBreakpadForProcess(const std::string& process_type); | 150 virtual bool EnableBreakpadForProcess(const std::string& process_type); |
| 147 }; | 151 }; |
| 148 | 152 |
| 149 } // namespace crash_reporter | 153 } // namespace crash_reporter |
| 150 | 154 |
| 151 #endif // COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ | 155 #endif // COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ |
| OLD | NEW |