summaryrefslogtreecommitdiffstats
path: root/net/base/ssl_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/ssl_info.h')
-rw-r--r--net/base/ssl_info.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/net/base/ssl_info.h b/net/base/ssl_info.h
index d6103c9..1786b58 100644
--- a/net/base/ssl_info.h
+++ b/net/base/ssl_info.h
@@ -6,30 +6,27 @@
#define NET_BASE_SSL_INFO_H_
#pragma once
-#include "net/base/cert_status_flags.h"
-#include "net/base/x509_certificate.h"
+#include "base/ref_counted.h"
namespace net {
+class X509Certificate;
+
// SSL connection info.
// This is really a struct. All members are public.
class SSLInfo {
public:
- SSLInfo() : cert_status(0), security_bits(-1), connection_status(0) { }
+ SSLInfo();
+ SSLInfo(const SSLInfo& info);
+ ~SSLInfo();
+ SSLInfo& operator=(const SSLInfo& info);
- void Reset() {
- cert = NULL;
- cert_status = 0;
- security_bits = -1;
- connection_status = 0;
- }
+ void Reset();
bool is_valid() const { return cert != NULL; }
// Adds the specified |error| to the cert status.
- void SetCertError(int error) {
- cert_status |= MapNetErrorToCertStatus(error);
- }
+ void SetCertError(int error);
// The SSL certificate.
scoped_refptr<X509Certificate> cert;