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

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

Issue 637183002: Replace FINAL and OVERRIDE with their C++11 counterparts in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch 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 28 matching lines...) Expand all
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 virtual ~TraceUploader();
47 47
48 // net::URLFetcherDelegate implementation. 48 // net::URLFetcherDelegate implementation.
49 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; 49 virtual void OnURLFetchComplete(const net::URLFetcher* source) override;
50 virtual void OnURLFetchUploadProgress(const net::URLFetcher* source, 50 virtual void OnURLFetchUploadProgress(const net::URLFetcher* source,
51 int64 current, int64 total) OVERRIDE; 51 int64 current, int64 total) override;
52 52
53 // Compresses and uploads the given file contents. 53 // Compresses and uploads the given file contents.
54 void DoUpload(const std::string& file_contents, 54 void DoUpload(const std::string& file_contents,
55 UploadProgressCallback progress_callback, 55 UploadProgressCallback progress_callback,
56 UploadDoneCallback done_callback); 56 UploadDoneCallback done_callback);
57 57
58 private: 58 private:
59 // Sets up a multipart body to be uploaded. The body is produced according 59 // Sets up a multipart body to be uploaded. The body is produced according
60 // to RFC 2046. 60 // to RFC 2046.
61 void SetupMultipart(const std::string& trace_filename, 61 void SetupMultipart(const std::string& trace_filename,
(...skipping 20 matching lines...) Expand all
82 UploadDoneCallback done_callback_; 82 UploadDoneCallback done_callback_;
83 83
84 net::URLRequestContextGetter* request_context_; 84 net::URLRequestContextGetter* request_context_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(TraceUploader); 86 DISALLOW_COPY_AND_ASSIGN(TraceUploader);
87 }; 87 };
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_BROWSER_TRACING_TRACE_UPLOADER_H_ 91 #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_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698