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_INFO_H_ | 5 #ifndef NET_BASE_SSL_INFO_H_ |
6 #define NET_BASE_SSL_INFO_H_ | 6 #define NET_BASE_SSL_INFO_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "net/base/net_api.h" | 12 #include "net/base/net_export.h" |
13 #include "net/base/x509_cert_types.h" | 13 #include "net/base/x509_cert_types.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 class X509Certificate; | 17 class X509Certificate; |
18 | 18 |
19 // SSL connection info. | 19 // SSL connection info. |
20 // This is really a struct. All members are public. | 20 // This is really a struct. All members are public. |
21 class NET_API SSLInfo { | 21 class NET_EXPORT SSLInfo { |
22 public: | 22 public: |
23 // HandshakeType enumerates the possible resumption cases after an SSL | 23 // HandshakeType enumerates the possible resumption cases after an SSL |
24 // handshake. | 24 // handshake. |
25 enum HandshakeType { | 25 enum HandshakeType { |
26 HANDSHAKE_UNKNOWN = 0, | 26 HANDSHAKE_UNKNOWN = 0, |
27 HANDSHAKE_RESUME, // we resumed a previous session. | 27 HANDSHAKE_RESUME, // we resumed a previous session. |
28 HANDSHAKE_FULL, // we negotiated a new session. | 28 HANDSHAKE_FULL, // we negotiated a new session. |
29 }; | 29 }; |
30 | 30 |
31 SSLInfo(); | 31 SSLInfo(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 HandshakeType handshake_type; | 65 HandshakeType handshake_type; |
66 | 66 |
67 // The hashes of the SubjectPublicKeyInfos from each certificate in the chain. | 67 // The hashes of the SubjectPublicKeyInfos from each certificate in the chain. |
68 std::vector<SHA1Fingerprint> public_key_hashes; | 68 std::vector<SHA1Fingerprint> public_key_hashes; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace net | 71 } // namespace net |
72 | 72 |
73 #endif // NET_BASE_SSL_INFO_H_ | 73 #endif // NET_BASE_SSL_INFO_H_ |
OLD | NEW |