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

Side by Side Diff: net/base/openssl_private_key_store.h

Issue 2531373002: net: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase on top of master branch Created 4 years 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/base/network_change_notifier.h ('k') | net/base/parse_number.h » ('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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BASE_OPENSSL_PRIVATE_KEY_STORE_H_ 5 #ifndef NET_BASE_OPENSSL_PRIVATE_KEY_STORE_H_
6 #define NET_BASE_OPENSSL_PRIVATE_KEY_STORE_H_ 6 #define NET_BASE_OPENSSL_PRIVATE_KEY_STORE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 // Avoid including <openssl/evp.h> 10 // Avoid including <openssl/evp.h>
11 typedef struct evp_pkey_st EVP_PKEY; 11 typedef struct evp_pkey_st EVP_PKEY;
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "net/base/net_export.h" 14 #include "net/base/net_export.h"
15 15
16 class GURL; 16 class GURL;
17 17
18 namespace net { 18 namespace net {
19 19
20 class X509Certificate;
21
22 // OpenSSLPrivateKeyStore provides an interface for storing 20 // OpenSSLPrivateKeyStore provides an interface for storing
23 // public/private key pairs to system storage on platforms where 21 // public/private key pairs to system storage on platforms where
24 // OpenSSL is used. 22 // OpenSSL is used.
25 // This class shall only be used from the network thread. 23 // This class shall only be used from the network thread.
26 class NET_EXPORT OpenSSLPrivateKeyStore { 24 class NET_EXPORT OpenSSLPrivateKeyStore {
27 public: 25 public:
28 // Called to permanently store a private/public key pair, generated 26 // Called to permanently store a private/public key pair, generated
29 // via <keygen> while visiting |url|, to an appropriate system 27 // via <keygen> while visiting |url|, to an appropriate system
30 // location. Increments |pkey|'s reference count, so the caller is still 28 // location. Increments |pkey|'s reference count, so the caller is still
31 // responsible for calling EVP_PKEY_free on it. 29 // responsible for calling EVP_PKEY_free on it.
(...skipping 12 matching lines...) Expand all
44 42
45 private: 43 private:
46 OpenSSLPrivateKeyStore(); // not implemented. 44 OpenSSLPrivateKeyStore(); // not implemented.
47 ~OpenSSLPrivateKeyStore(); // not implemented. 45 ~OpenSSLPrivateKeyStore(); // not implemented.
48 DISALLOW_COPY_AND_ASSIGN(OpenSSLPrivateKeyStore); 46 DISALLOW_COPY_AND_ASSIGN(OpenSSLPrivateKeyStore);
49 }; 47 };
50 48
51 } // namespace net 49 } // namespace net
52 50
53 #endif // NET_BASE_OPENSSL_PRIVATE_KEY_STORE_H_ 51 #endif // NET_BASE_OPENSSL_PRIVATE_KEY_STORE_H_
OLDNEW
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/base/parse_number.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698