Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1253)

Unified Diff: chrome/browser/tracing/crash_service_uploader.h

Issue 1164313006: Slow Reports - Allow URL to be set on TraceCrashServiceUploader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/tracing/crash_service_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tracing/crash_service_uploader.h
diff --git a/chrome/browser/tracing/crash_service_uploader.h b/chrome/browser/tracing/crash_service_uploader.h
index 23cf556ae1fb3dd6250d779bcb0e183e4be102f5..5211f4303adc7e740f145dc13d499b1ec7999e0a 100644
--- a/chrome/browser/tracing/crash_service_uploader.h
+++ b/chrome/browser/tracing/crash_service_uploader.h
@@ -38,6 +38,8 @@ class TraceCrashServiceUploader : public content::TraceUploader,
net::URLRequestContextGetter* request_context);
~TraceCrashServiceUploader() override;
+ void SetUploadURL(const std::string& url);
+
// net::URLFetcherDelegate implementation.
void OnURLFetchComplete(const net::URLFetcher* source) override;
void OnURLFetchUploadProgress(const net::URLFetcher* source,
@@ -51,6 +53,7 @@ class TraceCrashServiceUploader : public content::TraceUploader,
private:
void DoUploadOnFileThread(const std::string& file_contents,
+ const std::string& upload_url,
const UploadProgressCallback& progress_callback,
const UploadDoneCallback& done_callback);
// Sets up a multipart body to be uploaded. The body is produced according
@@ -78,6 +81,8 @@ class TraceCrashServiceUploader : public content::TraceUploader,
net::URLRequestContextGetter* request_context_;
+ std::string upload_url_;
+
DISALLOW_COPY_AND_ASSIGN(TraceCrashServiceUploader);
};
« no previous file with comments | « no previous file | chrome/browser/tracing/crash_service_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698