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

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

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TRACING_UI_H_ 5 #ifndef CONTENT_BROWSER_TRACING_TRACING_UI_H_
6 #define CONTENT_BROWSER_TRACING_TRACING_UI_H_ 6 #define CONTENT_BROWSER_TRACING_TRACING_UI_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 15 matching lines...) Expand all
26 ~TracingUI() override; 26 ~TracingUI() override;
27 void OnTraceUploadProgress(int64_t current, int64_t total); 27 void OnTraceUploadProgress(int64_t current, int64_t total);
28 void OnTraceUploadComplete(bool success, const std::string& feedback); 28 void OnTraceUploadComplete(bool success, const std::string& feedback);
29 29
30 private: 30 private:
31 void DoUploadInternal(const std::string& file_contents, 31 void DoUploadInternal(const std::string& file_contents,
32 TraceUploader::UploadMode upload_mode); 32 TraceUploader::UploadMode upload_mode);
33 void DoUpload(const base::ListValue* args); 33 void DoUpload(const base::ListValue* args);
34 void DoUploadBase64Encoded(const base::ListValue* args); 34 void DoUploadBase64Encoded(const base::ListValue* args);
35 35
36 scoped_ptr<TracingDelegate> delegate_; 36 std::unique_ptr<TracingDelegate> delegate_;
37 scoped_ptr<TraceUploader> trace_uploader_; 37 std::unique_ptr<TraceUploader> trace_uploader_;
38 base::WeakPtrFactory<TracingUI> weak_factory_; 38 base::WeakPtrFactory<TracingUI> weak_factory_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(TracingUI); 40 DISALLOW_COPY_AND_ASSIGN(TracingUI);
41 }; 41 };
42 42
43 } // namespace content 43 } // namespace content
44 44
45 #endif // CONTENT_BROWSER_TRACING_TRACING_UI_H_ 45 #endif // CONTENT_BROWSER_TRACING_TRACING_UI_H_
OLDNEW
« no previous file with comments | « content/browser/tracing/tracing_controller_impl_data_sinks.cc ('k') | content/browser/tracing/tracing_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698