Audacity 3.2.0
|
This object is for internal usage. More...
#include <CrashReportContext.h>
Public Member Functions | |
bool | SetSenderPathUTF8 (const std::string &path) |
bool | SetReportURL (const std::string &url) |
bool | SetParameters (const std::map< std::string, std::string > &p) |
void | StartHandler (const std::string &databasePath) |
bool | SetSenderPathUTF8 (const std::string &path) |
bool | SetReportURL (const std::string &path) |
bool | SetParameters (const std::map< std::string, std::string > &p) |
void | StartHandler (const std::string &databasePath) |
Private Attributes | |
char | mSenderPath [MaxBufferLength] {} |
char | mReportURL [MaxBufferLength] {} |
char | mParameters [MaxBufferLength] {} |
wchar_t | mSenderPath [MaxBufferLength] {} |
wchar_t | mReportURL [MaxBufferLength] {} |
wchar_t | mParameters [MaxBufferLength] {} |
wchar_t | mCommand [MaxCommandLength] {} |
Static Private Attributes | |
static constexpr size_t | MaxBufferLength { 2048 } |
static constexpr size_t | MaxCommandLength { 8192 } |
Friends | |
bool | SendReport (CrashReportContext *ctx, const char *minidumpPath) |
bool | MakeCommand (CrashReportContext *ctx, const wchar_t *path, const wchar_t *id) |
bool | SendReport (CrashReportContext *ctx, const wchar_t *path, const wchar_t *id) |
This object is for internal usage.
Audacity: A Digital Audio Editor
CrashReportContext.h
Vitaly Sverchinsky
Simple POD type, holds user data required to start handler. Fields are initialized with Set* methods, which may return false if internal buffer isn't large enough to store value passed as an argument. After initialization call StartHandler providing path to the database, where minidumps will be stored.
Definition at line 24 of file unix/CrashReportContext.h.
bool CrashReportContext::SetParameters | ( | const std::map< std::string, std::string > & | p | ) |
Definition at line 125 of file unix/CrashReportContext.cpp.
References MaxBufferLength, mParameters, str, anonymous_namespace{CrashReportContext.cpp}::StrcpyChecked(), and anonymous_namespace{CrashReportContext.cpp}::StringifyParameters().
bool CrashReportContext::SetParameters | ( | const std::map< std::string, std::string > & | p | ) |
bool CrashReportContext::SetReportURL | ( | const std::string & | path | ) |
bool CrashReportContext::SetReportURL | ( | const std::string & | url | ) |
Definition at line 120 of file unix/CrashReportContext.cpp.
References MaxBufferLength, mReportURL, and anonymous_namespace{CrashReportContext.cpp}::StrcpyChecked().
bool CrashReportContext::SetSenderPathUTF8 | ( | const std::string & | path | ) |
Definition at line 115 of file unix/CrashReportContext.cpp.
References MaxBufferLength, mSenderPath, and anonymous_namespace{CrashReportContext.cpp}::StrcpyChecked().
Referenced by BreakpadConfigurer::Start().
bool CrashReportContext::SetSenderPathUTF8 | ( | const std::string & | path | ) |
void CrashReportContext::StartHandler | ( | const std::string & | databasePath | ) |
Definition at line 131 of file unix/CrashReportContext.cpp.
References anonymous_namespace{CrashReportContext.cpp}::DumpCallback(), and audacity::cloud::audiocom::anonymous_namespace{AuthorizationHandler.cpp}::handler.
void CrashReportContext::StartHandler | ( | const std::string & | databasePath | ) |
|
friend |
Definition at line 72 of file win32/CrashReportContext.cpp.
|
friend |
Audacity: A Digital Audio Editor
CrashReportContext.cpp
Vitaly Sverchinsky
Some parts of the code are designed to operate while app is crashing, so there may be some restrictions on heap usage. For more information please read Breakpad documentation.
Definition at line 26 of file unix/CrashReportContext.cpp.
|
friend |
Definition at line 99 of file win32/CrashReportContext.cpp.
|
staticconstexprprivate |
Definition at line 26 of file unix/CrashReportContext.h.
Referenced by SetParameters(), SetReportURL(), and SetSenderPathUTF8().
|
staticconstexprprivate |
Definition at line 27 of file win32/CrashReportContext.h.
|
private |
Definition at line 34 of file win32/CrashReportContext.h.
|
private |
Definition at line 30 of file unix/CrashReportContext.h.
Referenced by SetParameters().
|
private |
Definition at line 31 of file win32/CrashReportContext.h.
|
private |
Definition at line 29 of file unix/CrashReportContext.h.
Referenced by SetReportURL().
|
private |
Definition at line 30 of file win32/CrashReportContext.h.
|
private |
Definition at line 28 of file unix/CrashReportContext.h.
Referenced by SetSenderPathUTF8().
|
private |
Definition at line 29 of file win32/CrashReportContext.h.