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

Unified Diff: content/public/browser/background_tracing_manager.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/background_tracing_config.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/background_tracing_manager.h
diff --git a/content/public/browser/background_tracing_manager.h b/content/public/browser/background_tracing_manager.h
index 61258edca40bcd1859c0be82ea4e29cdd2f984ad..71ca8c66dbca7e8be903390fbfe20fff8514d57c 100644
--- a/content/public/browser/background_tracing_manager.h
+++ b/content/public/browser/background_tracing_manager.h
@@ -5,7 +5,8 @@
#ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_
#define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_MANAGER_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/trace_event/trace_event_impl.h"
#include "base/values.h"
#include "content/common/content_export.h"
@@ -32,7 +33,7 @@ class BackgroundTracingManager {
// Example:
//
// void Upload(const scoped_refptr<base::RefCountedString>& data,
- // scoped_ptr<base::DictionaryValue>,
+ // std::unique_ptr<base::DictionaryValue>,
// base::Closure done_callback) {
// BrowserThread::PostTaskAndReply(
// BrowserThread::FILE,
@@ -43,8 +44,9 @@ class BackgroundTracingManager {
// }
//
typedef base::Callback<void(const scoped_refptr<base::RefCountedString>&,
- scoped_ptr<const base::DictionaryValue>,
- base::Closure)> ReceiveCallback;
+ std::unique_ptr<const base::DictionaryValue>,
+ base::Closure)>
+ ReceiveCallback;
// Set the triggering rules for when to start recording.
//
@@ -65,9 +67,10 @@ class BackgroundTracingManager {
NO_DATA_FILTERING,
ANONYMIZE_DATA,
};
- virtual bool SetActiveScenario(scoped_ptr<BackgroundTracingConfig> config,
- const ReceiveCallback& receive_callback,
- DataFiltering data_filtering) = 0;
+ virtual bool SetActiveScenario(
+ std::unique_ptr<BackgroundTracingConfig> config,
+ const ReceiveCallback& receive_callback,
+ DataFiltering data_filtering) = 0;
// Notifies the caller when the manager is idle (not recording or uploading),
// so that a call to SetActiveScenario() is likely to succeed.
« no previous file with comments | « content/public/browser/background_tracing_config.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698