| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INFO_H_ | 5 #ifndef NET_SSL_SSL_INFO_H_ |
| 6 #define NET_SSL_SSL_INFO_H_ | 6 #define NET_SSL_SSL_INFO_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // SSL connection info. | 24 // SSL connection info. |
| 25 // This is really a struct. All members are public. | 25 // This is really a struct. All members are public. |
| 26 class NET_EXPORT SSLInfo { | 26 class NET_EXPORT SSLInfo { |
| 27 public: | 27 public: |
| 28 // HandshakeType enumerates the possible resumption cases after an SSL | 28 // HandshakeType enumerates the possible resumption cases after an SSL |
| 29 // handshake. | 29 // handshake. |
| 30 enum HandshakeType { | 30 enum HandshakeType { |
| 31 HANDSHAKE_UNKNOWN = 0, | 31 HANDSHAKE_UNKNOWN = 0, |
| 32 HANDSHAKE_RESUME, // we resumed a previous session. | 32 HANDSHAKE_RESUME, // we resumed a previous session. |
| 33 HANDSHAKE_FULL, // we negotiated a new session. | 33 HANDSHAKE_FULL, // we negotiated a new session. |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 SSLInfo(); | 36 SSLInfo(); |
| 37 SSLInfo(const SSLInfo& info); | 37 SSLInfo(const SSLInfo& info); |
| 38 ~SSLInfo(); | 38 ~SSLInfo(); |
| 39 SSLInfo& operator=(const SSLInfo& info); | 39 SSLInfo& operator=(const SSLInfo& info); |
| 40 | 40 |
| 41 void Reset(); | 41 void Reset(); |
| 42 | 42 |
| 43 bool is_valid() const { return cert.get() != NULL; } | 43 bool is_valid() const { return cert.get() != NULL; } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 std::string pinning_failure_log; | 86 std::string pinning_failure_log; |
| 87 | 87 |
| 88 // List of SignedCertificateTimestamps and their corresponding validation | 88 // List of SignedCertificateTimestamps and their corresponding validation |
| 89 // status. | 89 // status. |
| 90 SignedCertificateTimestampAndStatusList signed_certificate_timestamps; | 90 SignedCertificateTimestampAndStatusList signed_certificate_timestamps; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace net | 93 } // namespace net |
| 94 | 94 |
| 95 #endif // NET_SSL_SSL_INFO_H_ | 95 #endif // NET_SSL_SSL_INFO_H_ |
| OLD | NEW |