mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
30 lines
750 B
C++
30 lines
750 B
C++
#pragma once
|
|
|
|
#include "ErrorUploader.h"
|
|
|
|
|
|
namespace RBX
|
|
{
|
|
class Http;
|
|
}
|
|
|
|
class DumpErrorUploader : public ErrorUploader
|
|
{
|
|
public:
|
|
DumpErrorUploader(bool backgroundUpload, const std::string& crashCounterNamePrefix);
|
|
void Upload(const std::string& url);
|
|
void InitCrashEvent(const std::string& url, const std::string& crashEventName);
|
|
|
|
static void UploadCrashEventFile(struct _EXCEPTION_POINTERS *info = NULL);
|
|
|
|
// Really trying to minimize heap allocations on crash event upload
|
|
static boost::scoped_ptr<RBX::Http> crashEventRequest;
|
|
static std::istringstream crashEventData;
|
|
static std::string crashEventResponse;
|
|
static std::string crashCounterNamePrefix;
|
|
private:
|
|
static RBX::worker_thread::work_result run(shared_ptr<data> _data);
|
|
|
|
};
|
|
|