diff options
Diffstat (limited to 'components/breakpad')
-rw-r--r-- | components/breakpad/breakpad_client.cc | 5 | ||||
-rw-r--r-- | components/breakpad/breakpad_client.h | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/components/breakpad/breakpad_client.cc b/components/breakpad/breakpad_client.cc index 9deb13e..a4c8c45 100644 --- a/components/breakpad/breakpad_client.cc +++ b/components/breakpad/breakpad_client.cc @@ -110,4 +110,9 @@ int BreakpadClient::GetAndroidMinidumpDescriptor() { } #endif +#if defined(OS_MACOSX) +void BreakpadClient::InstallAdditionalFilters(BreakpadRef breakpad) { +} +#endif + } // namespace breakpad diff --git a/components/breakpad/breakpad_client.h b/components/breakpad/breakpad_client.h index 486db02..35b4308 100644 --- a/components/breakpad/breakpad_client.h +++ b/components/breakpad/breakpad_client.h @@ -14,6 +14,17 @@ namespace base { class FilePath; } +#if defined(OS_MACOSX) +// We don't want to directly include +// breakpad/src/client/mac/Framework/Breakpad.h here, so we repeat the +// definition of BreakpadRef. +// +// On Mac, when compiling without breakpad support, a stub implementation is +// compiled in. Not having any includes of the breakpad library allows for +// reusing this header for the stub. +typedef void* BreakpadRef; +#endif + namespace breakpad { class BreakpadClient; @@ -108,6 +119,11 @@ class BreakpadClient { // Returns the descriptor key of the android minidump global descriptor. virtual int GetAndroidMinidumpDescriptor(); #endif + +#if defined(OS_MACOSX) + // Install additional breakpad filter callbacks. + virtual void InstallAdditionalFilters(BreakpadRef breakpad); +#endif }; } // namespace breakpad |