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

Unified Diff: content/public/browser/tracing_controller.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/trace_uploader.h ('k') | content/public/browser/tracing_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/tracing_controller.h
diff --git a/content/public/browser/tracing_controller.h b/content/public/browser/tracing_controller.h
index 64bf8ceed099f570cb65543c1778b34728c846cf..0de1a16b34c6ee8400055a8a6ef7d897ca544f9d 100644
--- a/content/public/browser/tracing_controller.h
+++ b/content/public/browser/tracing_controller.h
@@ -52,7 +52,8 @@ class TracingController {
// StopTracing is called, which may override metadata that you would
// set beforehand in case of key collision.
virtual void AddMetadata(const base::DictionaryValue& data);
- virtual scoped_ptr<const base::DictionaryValue> GetMetadataCopy() const;
+ virtual std::unique_ptr<const base::DictionaryValue> GetMetadataCopy()
+ const;
virtual void SetMetadataFilterPredicate(
const MetadataFilterPredicate& metadata_filter_predicate);
virtual void Close() {}
@@ -82,8 +83,8 @@ class TracingController {
public:
virtual void ReceiveTraceChunk(const std::string& chunk) {}
virtual void ReceiveTraceFinalContents(
- scoped_ptr<const base::DictionaryValue> metadata,
- const std::string& contents) {}
+ std::unique_ptr<const base::DictionaryValue> metadata,
+ const std::string& contents) {}
protected:
friend class base::RefCountedThreadSafe<TraceDataEndpoint>;
@@ -93,7 +94,7 @@ class TracingController {
// Create a trace sink that may be supplied to StopTracing
// to capture the trace data as a string.
CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateStringSink(
- const base::Callback<void(scoped_ptr<const base::DictionaryValue>,
+ const base::Callback<void(std::unique_ptr<const base::DictionaryValue>,
base::RefCountedString*)>& callback);
CONTENT_EXPORT static scoped_refptr<TraceDataSink> CreateCompressedStringSink(
@@ -108,7 +109,7 @@ class TracingController {
// Create an endpoint that may be supplied to any TraceDataSink to
// dump the trace data to a callback.
CONTENT_EXPORT static scoped_refptr<TraceDataEndpoint> CreateCallbackEndpoint(
- const base::Callback<void(scoped_ptr<const base::DictionaryValue>,
+ const base::Callback<void(std::unique_ptr<const base::DictionaryValue>,
base::RefCountedString*)>& callback);
// Create an endpoint that may be supplied to any TraceDataSink to
« no previous file with comments | « content/public/browser/trace_uploader.h ('k') | content/public/browser/tracing_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698