summaryrefslogtreecommitdiffstats
path: root/net/socket/ssl_client_socket.h
diff options
context:
space:
mode:
authorrtenneti@google.com <rtenneti@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 17:50:51 +0000
committerrtenneti@google.com <rtenneti@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-20 17:50:51 +0000
commitc30bcce5bcaac902a63146da6151494b832bac13 (patch)
treef33179c11efe6383ada786fb201fc4a3e5e543e3 /net/socket/ssl_client_socket.h
parentebc463107e2892419d560195b8325ba4c3229599 (diff)
downloadchromium_src-c30bcce5bcaac902a63146da6151494b832bac13.zip
chromium_src-c30bcce5bcaac902a63146da6151494b832bac13.tar.gz
chromium_src-c30bcce5bcaac902a63146da6151494b832bac13.tar.bz2
Added protocol_version negotiated with the server.
protocol_version will be printed by the LoadTimes extension. R=willchan BUG=108134 TEST=network unittests Review URL: http://codereview.chromium.org/8914005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_client_socket.h')
-rw-r--r--net/socket/ssl_client_socket.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/socket/ssl_client_socket.h b/net/socket/ssl_client_socket.h
index e040e38..0116e37 100644
--- a/net/socket/ssl_client_socket.h
+++ b/net/socket/ssl_client_socket.h
@@ -112,6 +112,8 @@ class NET_EXPORT SSLClientSocket : public SSLSocket {
static NextProto NextProtoFromString(const std::string& proto_string);
+ static const char* NextProtoToString(SSLClientSocket::NextProto next_proto);
+
static const char* NextProtoStatusToString(
const SSLClientSocket::NextProtoStatus status);
@@ -133,10 +135,10 @@ class NET_EXPORT SSLClientSocket : public SSLSocket {
virtual bool set_was_spdy_negotiated(bool negotiated);
- virtual SSLClientSocket::NextProto next_protocol_negotiated() const;
+ virtual SSLClientSocket::NextProto protocol_negotiated() const;
- virtual void set_next_protocol_negotiated(
- SSLClientSocket::NextProto next_protocol);
+ virtual void set_protocol_negotiated(
+ SSLClientSocket::NextProto protocol_negotiated);
// Returns true if an origin bound certificate was sent on this connection.
// This may be useful for protocols, like SPDY, which allow the same
@@ -152,7 +154,7 @@ class NET_EXPORT SSLClientSocket : public SSLSocket {
// True if NPN successfully negotiated SPDY.
bool was_spdy_negotiated_;
// Protocol that we negotiated with the server.
- SSLClientSocket::NextProto next_protocol_;
+ SSLClientSocket::NextProto protocol_negotiated_;
// True if an origin bound certificate was sent.
bool was_origin_bound_cert_sent_;
};