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

Unified Diff: content/public/browser/trace_uploader.h

Issue 1225923003: Make compression optional in TraceUploader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment for clarification. Created 5 years, 5 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 | « content/browser/tracing/tracing_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/trace_uploader.h
diff --git a/content/public/browser/trace_uploader.h b/content/public/browser/trace_uploader.h
index 3f12d343df5f404bb536a97de10368c3c06a0bcb..88f5c48e02dcbfb81f2cecc27ced332d00d586a2 100644
--- a/content/public/browser/trace_uploader.h
+++ b/content/public/browser/trace_uploader.h
@@ -25,8 +25,11 @@ class TraceUploader {
virtual ~TraceUploader() {}
+ enum UploadMode { COMPRESSED_UPLOAD, UNCOMPRESSED_UPLOAD };
+
// Compresses and uploads the given file contents.
virtual void DoUpload(const std::string& file_contents,
+ UploadMode upload_mode,
scoped_ptr<base::DictionaryValue> metadata,
const UploadProgressCallback& progress_callback,
const UploadDoneCallback& done_callback) = 0;
« no previous file with comments | « content/browser/tracing/tracing_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698