| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include "net/base/cert_status_flags.h" | 8 #include "net/base/cert_status_flags.h" |
| 9 #include "net/base/net_errors.h" | |
| 10 #include "net/base/x509_certificate.h" | 9 #include "net/base/x509_certificate.h" |
| 11 | 10 |
| 12 namespace net { | 11 namespace net { |
| 13 | 12 |
| 14 // SSL connection info. | 13 // SSL connection info. |
| 15 // This is really a struct. All members are public. | 14 // This is really a struct. All members are public. |
| 16 class SSLInfo { | 15 class SSLInfo { |
| 17 public: | 16 public: |
| 18 SSLInfo() : cert_status(0), security_bits(-1) { } | 17 SSLInfo() : cert_status(0), security_bits(-1) { } |
| 19 | 18 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 40 | 39 |
| 41 // The security strength, in bits, of the SSL cipher suite. | 40 // The security strength, in bits, of the SSL cipher suite. |
| 42 // 0 means the connection is not encrypted. | 41 // 0 means the connection is not encrypted. |
| 43 // -1 means the security strength is unknown. | 42 // -1 means the security strength is unknown. |
| 44 int security_bits; | 43 int security_bits; |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 } // namespace net | 46 } // namespace net |
| 48 | 47 |
| 49 #endif // NET_BASE_SSL_INFO_H_ | 48 #endif // NET_BASE_SSL_INFO_H_ |
| OLD | NEW |