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

Side by Side Diff: net/ssl/ssl_platform_key.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 unified diff | Download patch
« no previous file with comments | « net/ssl/ssl_key_logger.h ('k') | net/ssl/ssl_platform_key_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 NET_SSL_SSL_PLATFORM_KEY_H_ 5 #ifndef NET_SSL_SSL_PLATFORM_KEY_H_
6 #define NET_SSL_SSL_PLATFORM_KEY_H_ 6 #define NET_SSL_SSL_PLATFORM_KEY_H_
7 7
8 #include <memory>
9
8 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
9 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
12 13
13 namespace base { 14 namespace base {
14 class SequencedTaskRunner; 15 class SequencedTaskRunner;
15 } 16 }
16 17
17 namespace net { 18 namespace net {
18 19
19 class SSLPrivateKey; 20 class SSLPrivateKey;
20 class X509Certificate; 21 class X509Certificate;
21 22
22 // Looks up the private key from the platform key store corresponding to 23 // Looks up the private key from the platform key store corresponding to
23 // |certificate|'s public key and returns an SSLPrivateKey backed by the 24 // |certificate|'s public key and returns an SSLPrivateKey backed by the
24 // playform key. 25 // playform key.
25 NET_EXPORT scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey( 26 NET_EXPORT scoped_refptr<SSLPrivateKey> FetchClientCertPrivateKey(
26 X509Certificate* certificate); 27 X509Certificate* certificate);
27 28
28 } // namespace net 29 } // namespace net
29 30
30 #endif // NET_SSL_SSL_PLATFORM_KEY_H_ 31 #endif // NET_SSL_SSL_PLATFORM_KEY_H_
OLDNEW
« no previous file with comments | « net/ssl/ssl_key_logger.h ('k') | net/ssl/ssl_platform_key_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698