summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/socket/ssl_host_info.cc7
-rw-r--r--net/socket/ssl_host_info.h6
2 files changed, 13 insertions, 0 deletions
diff --git a/net/socket/ssl_host_info.cc b/net/socket/ssl_host_info.cc
index 4b5bb02..9056fef 100644
--- a/net/socket/ssl_host_info.cc
+++ b/net/socket/ssl_host_info.cc
@@ -9,6 +9,13 @@
namespace net {
+SSLHostInfo::State::State()
+ : npn_valid(false),
+ npn_status(SSLClientSocket::kNextProtoUnsupported) {
+}
+
+SSLHostInfo::State::~State() {}
+
SSLHostInfo::SSLHostInfo() {
state_.npn_valid = false;
}
diff --git a/net/socket/ssl_host_info.h b/net/socket/ssl_host_info.h
index 8065b47..ea82f34 100644
--- a/net/socket/ssl_host_info.h
+++ b/net/socket/ssl_host_info.h
@@ -48,6 +48,9 @@ class SSLHostInfo {
virtual void Persist() = 0;
struct State {
+ State();
+ ~State();
+
// certs is a vector of DER encoded X.509 certificates, as the server
// returned them and in the same order.
std::vector<std::string> certs;
@@ -59,6 +62,9 @@ class SSLHostInfo {
// these members contain the NPN result of a connection to the server.
SSLClientSocket::NextProtoStatus npn_status;
std::string npn_protocol;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(State);
};
// Once the data is ready, it can be read using the following members. These