Chromium Code Reviews| Index: components/crash/content/app/crashpad.h |
| diff --git a/components/crash/content/app/crashpad.h b/components/crash/content/app/crashpad.h |
| index eeb65ac69b71f96e4fdcc891650e34773f0b2a37..ada0eaec733beb3026f6f0850f7805fbba5d84f9 100644 |
| --- a/components/crash/content/app/crashpad.h |
| +++ b/components/crash/content/app/crashpad.h |
| @@ -12,6 +12,15 @@ |
| #include <vector> |
| #include "base/files/file_path.h" |
| +#include "build/build_config.h" |
| + |
| +#if defined(OS_MACOSX) |
| +#include "base/mac/scoped_mach_port.h" |
| +#endif |
| + |
| +namespace crashpad { |
| +class CrashpadClient; |
| +} |
| namespace crash_reporter { |
| @@ -55,6 +64,10 @@ void InitializeCrashpadWithEmbeddedHandler(bool initial_client, |
| const std::string& process_type); |
| #endif // OS_WIN |
| +// Returns the CrashpadClient for this process. This will lazily create it if |
| +// it does not already exist. This is called as part of InitializeCrashpad. |
| +crashpad::CrashpadClient& GetCrashpadClient(); |
|
Mark Mentovai
2017/03/15 19:38:43
Non-const ref or pointer, either one is fine by me
|
| + |
| // Enables or disables crash report upload, taking the given consent to upload |
| // into account. Consent may be ignored, uploads may not be enabled even with |
| // consent, but will only be enabled without consent when policy enforces crash |