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

Side by Side Diff: content/browser/tracing/trace_uploader.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 CONTENT_BROWSER_TRACING_TRACE_UPLOADER_H_ 5 #ifndef CONTENT_BROWSER_TRACING_TRACE_UPLOADER_H_
6 #define CONTENT_BROWSER_TRACING_TRACE_UPLOADER_H_ 6 #define CONTENT_BROWSER_TRACING_TRACE_UPLOADER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 class TraceUploader : public net::URLFetcherDelegate { 36 class TraceUploader : public net::URLFetcherDelegate {
37 public: 37 public:
38 typedef base::Callback<void(bool, const std::string&, const std::string&)> 38 typedef base::Callback<void(bool, const std::string&, const std::string&)>
39 UploadDoneCallback; 39 UploadDoneCallback;
40 typedef base::Callback<void(int64, int64)> UploadProgressCallback; 40 typedef base::Callback<void(int64, int64)> UploadProgressCallback;
41 41
42 TraceUploader(const std::string& product, 42 TraceUploader(const std::string& product,
43 const std::string& version, 43 const std::string& version,
44 const std::string& upload_url, 44 const std::string& upload_url,
45 net::URLRequestContextGetter* request_context); 45 net::URLRequestContextGetter* request_context);
46 virtual ~TraceUploader(); 46 ~TraceUploader() override;
47 47
48 // net::URLFetcherDelegate implementation. 48 // net::URLFetcherDelegate implementation.
49 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; 49 void OnURLFetchComplete(const net::URLFetcher* source) override;
50 virtual void OnURLFetchUploadProgress(const net::URLFetcher* source, 50 void OnURLFetchUploadProgress(const net::URLFetcher* source,
51 int64 current, int64 total) override; 51 int64 current,
52 int64 total) override;
52 53
53 // Compresses and uploads the given file contents. 54 // Compresses and uploads the given file contents.
54 void DoUpload(const std::string& file_contents, 55 void DoUpload(const std::string& file_contents,
55 UploadProgressCallback progress_callback, 56 UploadProgressCallback progress_callback,
56 UploadDoneCallback done_callback); 57 UploadDoneCallback done_callback);
57 58
58 private: 59 private:
59 // Sets up a multipart body to be uploaded. The body is produced according 60 // Sets up a multipart body to be uploaded. The body is produced according
60 // to RFC 2046. 61 // to RFC 2046.
61 void SetupMultipart(const std::string& trace_filename, 62 void SetupMultipart(const std::string& trace_filename,
(...skipping 20 matching lines...) Expand all
82 UploadDoneCallback done_callback_; 83 UploadDoneCallback done_callback_;
83 84
84 net::URLRequestContextGetter* request_context_; 85 net::URLRequestContextGetter* request_context_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(TraceUploader); 87 DISALLOW_COPY_AND_ASSIGN(TraceUploader);
87 }; 88 };
88 89
89 } // namespace content 90 } // namespace content
90 91
91 #endif // CONTENT_BROWSER_TRACING_TRACE_UPLOADER_H_ 92 #endif // CONTENT_BROWSER_TRACING_TRACE_UPLOADER_H_
OLDNEW
« no previous file with comments | « content/browser/tracing/trace_message_filter.h ('k') | content/browser/tracing/tracing_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698