OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SSL_CERT_REQUEST_INFO_H_ | 5 #ifndef NET_BASE_SSL_CERT_REQUEST_INFO_H_ |
6 #define NET_BASE_SSL_CERT_REQUEST_INFO_H_ | 6 #define NET_BASE_SSL_CERT_REQUEST_INFO_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "net/base/net_api.h" |
13 | 14 |
14 namespace net { | 15 namespace net { |
15 | 16 |
16 class X509Certificate; | 17 class X509Certificate; |
17 | 18 |
18 // The SSLCertRequestInfo class contains the info that allows a user to | 19 // The SSLCertRequestInfo class contains the info that allows a user to |
19 // select a certificate to send to the SSL server for client authentication. | 20 // select a certificate to send to the SSL server for client authentication. |
20 class SSLCertRequestInfo | 21 class NET_API SSLCertRequestInfo |
21 : public base::RefCountedThreadSafe<SSLCertRequestInfo> { | 22 : public base::RefCountedThreadSafe<SSLCertRequestInfo> { |
22 public: | 23 public: |
23 SSLCertRequestInfo(); | 24 SSLCertRequestInfo(); |
24 | 25 |
25 void Reset(); | 26 void Reset(); |
26 | 27 |
27 // The host and port of the SSL server that requested client authentication. | 28 // The host and port of the SSL server that requested client authentication. |
28 std::string host_and_port; | 29 std::string host_and_port; |
29 | 30 |
30 // A list of client certificates that match the server's criteria in the | 31 // A list of client certificates that match the server's criteria in the |
(...skipping 14 matching lines...) Expand all Loading... |
45 | 46 |
46 private: | 47 private: |
47 friend class base::RefCountedThreadSafe<SSLCertRequestInfo>; | 48 friend class base::RefCountedThreadSafe<SSLCertRequestInfo>; |
48 | 49 |
49 ~SSLCertRequestInfo(); | 50 ~SSLCertRequestInfo(); |
50 }; | 51 }; |
51 | 52 |
52 } // namespace net | 53 } // namespace net |
53 | 54 |
54 #endif // NET_BASE_SSL_CERT_REQUEST_INFO_H_ | 55 #endif // NET_BASE_SSL_CERT_REQUEST_INFO_H_ |
OLD | NEW |