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

Unified Diff: components/leveldb_proto/proto_database.h

Issue 1918083002: Convert //components/[f-n]* 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/leveldb_proto/leveldb_database.cc ('k') | components/leveldb_proto/proto_database_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb_proto/proto_database.h
diff --git a/components/leveldb_proto/proto_database.h b/components/leveldb_proto/proto_database.h
index 1c0a063be6d887f04972b2a3e29d6ddfb954a6e0..30949bf3bdf3ddd25b4c74a5a311507dde2abcd4 100644
--- a/components/leveldb_proto/proto_database.h
+++ b/components/leveldb_proto/proto_database.h
@@ -5,12 +5,12 @@
#ifndef COMPONENTS_LEVELDB_PROTO_PROTO_DATABASE_H_
#define COMPONENTS_LEVELDB_PROTO_PROTO_DATABASE_H_
+#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
namespace base {
class FilePath;
@@ -26,7 +26,7 @@ class ProtoDatabase {
using InitCallback = base::Callback<void(bool success)>;
using UpdateCallback = base::Callback<void(bool success)>;
using LoadCallback =
- base::Callback<void(bool success, scoped_ptr<std::vector<T>>)>;
+ base::Callback<void(bool success, std::unique_ptr<std::vector<T>>)>;
using DestroyCallback = base::Callback<void(bool success)>;
// A list of key-value (string, T) tuples.
@@ -44,8 +44,8 @@ class ProtoDatabase {
// |keys_to_remove| from the database. |callback| will be invoked on the
// calling thread when complete.
virtual void UpdateEntries(
- scoped_ptr<KeyEntryVector> entries_to_save,
- scoped_ptr<std::vector<std::string>> keys_to_remove,
+ std::unique_ptr<KeyEntryVector> entries_to_save,
+ std::unique_ptr<std::vector<std::string>> keys_to_remove,
const UpdateCallback& callback) = 0;
// Asynchronously loads all entries from the database and invokes |callback|
« no previous file with comments | « components/leveldb_proto/leveldb_database.cc ('k') | components/leveldb_proto/proto_database_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698