Chromium Code Reviews| Index: chrome/browser/media/webrtc_log_uploader.h |
| diff --git a/chrome/browser/media/webrtc_log_uploader.h b/chrome/browser/media/webrtc_log_uploader.h |
| index 40d95547bf78a001dc88f6b36d3810394249ea10..2f0e3181b7d5e0e0d26eb69f0185ded7f9dbbb93 100644 |
| --- a/chrome/browser/media/webrtc_log_uploader.h |
| +++ b/chrome/browser/media/webrtc_log_uploader.h |
| @@ -27,6 +27,13 @@ class URLFetcher; |
| typedef struct z_stream_s z_stream; |
| +struct WebRtcRtpDumpDescription { |
| + WebRtcRtpDumpDescription(const std::string& name, const base::FilePath& path); |
| + |
| + std::string name; // A user friendly name of the dump. |
| + base::FilePath path; // The file path of the dump. |
| +}; |
| + |
| // Used when uploading is done to perform post-upload actions. |log_path| is |
| // also used pre-upload. |
| struct WebRtcLogUploadDoneData { |
| @@ -34,6 +41,7 @@ struct WebRtcLogUploadDoneData { |
| ~WebRtcLogUploadDoneData(); |
| base::FilePath log_path; |
| + std::vector<WebRtcRtpDumpDescription> rtp_dumps; |
|
vrk (LEFT CHROMIUM)
2014/05/28 23:55:07
I think it'd be clearer to just have
base::FilePat
|
| WebRtcLoggingHandlerHost::UploadDoneCallback callback; |
| scoped_refptr<WebRtcLoggingHandlerHost> host; |
| std::string local_log_id; |
| @@ -99,12 +107,9 @@ class WebRtcLogUploader : public net::URLFetcherDelegate { |
| // to RFC 2046. |
| void SetupMultipart(std::string* post_data, |
| const std::vector<uint8>& compressed_log, |
| + const std::vector<WebRtcRtpDumpDescription>& rtp_dumps, |
| const std::map<std::string, std::string>& meta_data); |
| - // Adds |compressed_log| to |post_data|. |
| - void AddLogData(std::string* post_data, |
| - const std::vector<uint8>& compressed_log); |
| - |
| void CompressLog(std::vector<uint8>* compressed_log, |
| uint8* input, |
| uint32 input_size); |