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

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

Issue 911153002: Moved the TraceUploader to chrome/ and abstracted it for alternative new upload destinations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
(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 {
13 public:
14 typedef base::Callback<void(bool, const std::string&, const std::string&)>
15 UploadDoneCallback;
16 typedef base::Callback<void(int64, int64)> UploadProgressCallback;
17
18 // Compresses and uploads the given file contents.
19 virtual void DoUpload(const std::string& file_contents,
20 UploadProgressCallback progress_callback,
21 UploadDoneCallback done_callback) = 0;
22 };
23
24 } // namespace content
25
26 #endif // CONTENT_PUBLIC_BROWSER_TRACE_UPLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698