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

Unified Diff: net/ssl/channel_id_store.h

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu 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 | « net/ssl/channel_id_service_unittest.cc ('k') | net/ssl/channel_id_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/channel_id_store.h
diff --git a/net/ssl/channel_id_store.h b/net/ssl/channel_id_store.h
index 3eb9d67a31f9e8358c7eac3b7dd733d9d1787230..21c513a77e3e4a15e45e19402629abf30a84ff01 100644
--- a/net/ssl/channel_id_store.h
+++ b/net/ssl/channel_id_store.h
@@ -6,10 +6,10 @@
#define NET_SSL_CHANNEL_ID_STORE_H_
#include <list>
+#include <memory>
#include <string>
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "base/time/time.h"
#include "crypto/ec_private_key.h"
@@ -32,7 +32,7 @@ class NET_EXPORT ChannelIDStore
ChannelID();
ChannelID(const std::string& server_identifier,
base::Time creation_time,
- scoped_ptr<crypto::ECPrivateKey> key);
+ std::unique_ptr<crypto::ECPrivateKey> key);
ChannelID(const ChannelID& other);
ChannelID& operator=(const ChannelID& other);
~ChannelID();
@@ -49,13 +49,13 @@ class NET_EXPORT ChannelIDStore
private:
std::string server_identifier_;
base::Time creation_time_;
- scoped_ptr<crypto::ECPrivateKey> key_;
+ std::unique_ptr<crypto::ECPrivateKey> key_;
};
typedef std::list<ChannelID> ChannelIDList;
typedef base::Callback<
- void(int, const std::string&, scoped_ptr<crypto::ECPrivateKey>)>
+ void(int, const std::string&, std::unique_ptr<crypto::ECPrivateKey>)>
GetChannelIDCallback;
typedef base::Callback<void(const ChannelIDList&)> GetChannelIDListCallback;
@@ -68,11 +68,11 @@ class NET_EXPORT ChannelIDStore
// return ERR_IO_PENDING and the callback will be called with the result
// asynchronously.
virtual int GetChannelID(const std::string& server_identifier,
- scoped_ptr<crypto::ECPrivateKey>* key_result,
+ std::unique_ptr<crypto::ECPrivateKey>* key_result,
const GetChannelIDCallback& callback) = 0;
// Adds the keypair for a hostname to the store.
- virtual void SetChannelID(scoped_ptr<ChannelID> channel_id) = 0;
+ virtual void SetChannelID(std::unique_ptr<ChannelID> channel_id) = 0;
// Removes a keypair from the store.
virtual void DeleteChannelID(
« no previous file with comments | « net/ssl/channel_id_service_unittest.cc ('k') | net/ssl/channel_id_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698