summaryrefslogtreecommitdiffstats
path: root/net/base/ssl_info.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 18:00:53 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 18:00:53 +0000
commit9349cfb12f1b27e30ebb5d4ffc994812cce26d59 (patch)
treec98a55495b06a5cd068c251d2e217cf89cef6c02 /net/base/ssl_info.h
parent1c77d22487ac4759f29d329be7493228671bc05f (diff)
downloadchromium_src-9349cfb12f1b27e30ebb5d4ffc994812cce26d59.zip
chromium_src-9349cfb12f1b27e30ebb5d4ffc994812cce26d59.tar.gz
chromium_src-9349cfb12f1b27e30ebb5d4ffc994812cce26d59.tar.bz2
FBTF: A giant cleanup to net/
This moves all sorts of code from h files to cc files and reduces header dependencies. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3212008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58020 0039d316-1c4b-4281-b951-d872f2087c98
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;