Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_TRACE_UPLOADER_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_TRACE_UPLOADER_H_ | |
| 7 | |
| 8 #include "base/callback.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 class TraceUploader { | |
|
Charlie Reis
2015/02/12 17:11:32
Please add a class-level comment, since this is th
oystein (OOO til 10th of July)
2015/02/13 17:02:45
Done.
| |
| 13 public: | |
| 14 typedef base::Callback<void(bool, const std::string&, const std::string&)> | |
|
Charlie Reis
2015/02/12 17:11:32
Let's document these callbacks so that embedders k
oystein (OOO til 10th of July)
2015/02/13 17:02:45
Done.
| |
| 15 UploadDoneCallback; | |
| 16 typedef base::Callback<void(int64, int64)> UploadProgressCallback; | |
| 17 | |
| 18 virtual ~TraceUploader() {} | |
| 19 | |
| 20 // Compresses and uploads the given file contents. | |
| 21 virtual void DoUpload(const std::string& file_contents, | |
| 22 const UploadProgressCallback& progress_callback, | |
| 23 const UploadDoneCallback& done_callback) = 0; | |
| 24 }; | |
| 25 | |
| 26 } // namespace content | |
| 27 | |
| 28 #endif // CONTENT_PUBLIC_BROWSER_TRACE_UPLOADER_H_ | |
| OLD | NEW |