aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux/google_crashdump_uploader.cc
diff options
context:
space:
mode:
authorgunsch@chromium.org <gunsch@chromium.org>2014-09-18 16:48:49 +0000
committergunsch@chromium.org <gunsch@chromium.org>2014-09-18 16:48:49 +0000
commit63a2ea92454625c16ce494afd0ba364eb20ebc0c (patch)
tree68aeaba38d21108d39e5157cc4febffe5e7f3aa6 /src/common/linux/google_crashdump_uploader.cc
parent18b1418b25deb291bf97dae8c6b19692ebe32a67 (diff)
downloadgoogle-breakpad-63a2ea92454625c16ce494afd0ba364eb20ebc0c.tar.gz
GoogleCrashdumpUploader: adds Upload(string*) API to get the HTTP response.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1379 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/linux/google_crashdump_uploader.cc')
-rw-r--r--src/common/linux/google_crashdump_uploader.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/linux/google_crashdump_uploader.cc b/src/common/linux/google_crashdump_uploader.cc
index 4da1f5e4..6d86fb36 100644
--- a/src/common/linux/google_crashdump_uploader.cc
+++ b/src/common/linux/google_crashdump_uploader.cc
@@ -161,7 +161,9 @@ bool GoogleCrashdumpUploader::CheckRequiredParametersArePresent() {
}
-bool GoogleCrashdumpUploader::Upload() {
+bool GoogleCrashdumpUploader::Upload(int* http_status_code,
+ string* http_response_header,
+ string* http_response_body) {
bool ok = http_layer_->Init();
if (!ok) {
std::cout << "http layer init failed";
@@ -193,6 +195,8 @@ bool GoogleCrashdumpUploader::Upload() {
std::cout << "Sending request to " << crash_server_;
return http_layer_->SendRequest(crash_server_,
parameters_,
- NULL);
+ http_status_code,
+ http_response_header,
+ http_response_body);
}
}