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

Side by Side Diff: chrome/browser/tracing/crash_service_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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TRACING_CRASH_SERVICE_UPLOADER_H_ 5 #ifndef CHROME_BROWSER_TRACING_CRASH_SERVICE_UPLOADER_H_
6 #define CHROME_BROWSER_TRACING_CRASH_SERVICE_UPLOADER_H_ 6 #define CHROME_BROWSER_TRACING_CRASH_SERVICE_UPLOADER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 void SetUploadURL(const std::string& url); 40 void SetUploadURL(const std::string& url);
41 41
42 // net::URLFetcherDelegate implementation. 42 // net::URLFetcherDelegate implementation.
43 void OnURLFetchComplete(const net::URLFetcher* source) override; 43 void OnURLFetchComplete(const net::URLFetcher* source) override;
44 void OnURLFetchUploadProgress(const net::URLFetcher* source, 44 void OnURLFetchUploadProgress(const net::URLFetcher* source,
45 int64 current, 45 int64 current,
46 int64 total) override; 46 int64 total) override;
47 47
48 // content::TraceUploader 48 // content::TraceUploader
49 void DoUpload(const std::string& file_contents, 49 void DoUpload(const std::string& file_contents,
50 UploadMode upload_mode,
50 scoped_ptr<base::DictionaryValue> metadata, 51 scoped_ptr<base::DictionaryValue> metadata,
51 const UploadProgressCallback& progress_callback, 52 const UploadProgressCallback& progress_callback,
52 const UploadDoneCallback& done_callback) override; 53 const UploadDoneCallback& done_callback) override;
53 54
54 private: 55 private:
55 void DoUploadOnFileThread(const std::string& file_contents, 56 void DoUploadOnFileThread(const std::string& file_contents,
57 UploadMode upload_mode,
56 const std::string& upload_url, 58 const std::string& upload_url,
57 scoped_ptr<base::DictionaryValue> metadata, 59 scoped_ptr<base::DictionaryValue> metadata,
58 const UploadProgressCallback& progress_callback, 60 const UploadProgressCallback& progress_callback,
59 const UploadDoneCallback& done_callback); 61 const UploadDoneCallback& done_callback);
60 // Sets up a multipart body to be uploaded. The body is produced according 62 // Sets up a multipart body to be uploaded. The body is produced according
61 // to RFC 2046. 63 // to RFC 2046.
62 void SetupMultipart(const std::string& product, 64 void SetupMultipart(const std::string& product,
63 const std::string& version, 65 const std::string& version,
64 scoped_ptr<base::DictionaryValue> metadata, 66 scoped_ptr<base::DictionaryValue> metadata,
65 const std::string& trace_filename, 67 const std::string& trace_filename,
(...skipping 16 matching lines...) Expand all
82 UploadDoneCallback done_callback_; 84 UploadDoneCallback done_callback_;
83 85
84 net::URLRequestContextGetter* request_context_; 86 net::URLRequestContextGetter* request_context_;
85 87
86 std::string upload_url_; 88 std::string upload_url_;
87 89
88 DISALLOW_COPY_AND_ASSIGN(TraceCrashServiceUploader); 90 DISALLOW_COPY_AND_ASSIGN(TraceCrashServiceUploader);
89 }; 91 };
90 92
91 #endif // CHROME_BROWSER_TRACING_CRASH_SERVICE_UPLOADER_H_ 93 #endif // CHROME_BROWSER_TRACING_CRASH_SERVICE_UPLOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/tracing/background_tracing_field_trial.cc ('k') | chrome/browser/tracing/crash_service_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698