diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-31 03:58:46 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-31 03:58:46 +0000 |
commit | 8e3c78cb4857505329f602e6af71a46d05346e99 (patch) | |
tree | 0f42439dbfdea47be8189bc39d682062d071d3ec /net/socket/ssl_client_socket.h | |
parent | 9822df966d60c67faaf4c4adacc70801aed9edaf (diff) | |
download | chromium_src-8e3c78cb4857505329f602e6af71a46d05346e99.zip chromium_src-8e3c78cb4857505329f602e6af71a46d05346e99.tar.gz chromium_src-8e3c78cb4857505329f602e6af71a46d05346e99.tar.bz2 |
Move NextProto enum to a new file net/socket/next_proto.h
BUG=120890
Review URL: http://codereview.chromium.org/9959033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130038 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_client_socket.h')
-rw-r--r-- | net/socket/ssl_client_socket.h | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/net/socket/ssl_client_socket.h b/net/socket/ssl_client_socket.h index 6b86900..8f1284d 100644 --- a/net/socket/ssl_client_socket.h +++ b/net/socket/ssl_client_socket.h @@ -77,19 +77,6 @@ class NET_EXPORT SSLClientSocket : public SSLSocket { // the first protocol in our list. }; - // Next Protocol Negotiation (NPN), if successful, results in agreement on an - // application-level string that specifies the application level protocol to - // use over the TLS connection. NextProto enumerates the application level - // protocols that we recognise. - enum NextProto { - kProtoUnknown = 0, - kProtoHTTP11 = 1, - kProtoSPDY1 = 2, - kProtoSPDY2 = 3, - kProtoSPDY21 = 4, - kProtoSPDY3 = 5, - }; - // Gets the SSL connection information of the socket. // // TODO(sergeyu): Move this method to the SSLSocket interface and @@ -114,10 +101,9 @@ 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* NextProtoToString(NextProto next_proto); - static const char* NextProtoStatusToString( - const SSLClientSocket::NextProtoStatus status); + static const char* NextProtoStatusToString(const NextProtoStatus status); // Can be used with the second argument(|server_protos|) of |GetNextProto| to // construct a comma separated string of server advertised protocols. @@ -137,10 +123,9 @@ class NET_EXPORT SSLClientSocket : public SSLSocket { virtual bool set_was_spdy_negotiated(bool negotiated); - virtual SSLClientSocket::NextProto protocol_negotiated() const; + virtual NextProto protocol_negotiated() const; - virtual void set_protocol_negotiated( - SSLClientSocket::NextProto protocol_negotiated); + virtual void set_protocol_negotiated(NextProto protocol_negotiated); // Returns the ServerBoundCertService used by this socket, or NULL if // server bound certificates are not supported. @@ -164,7 +149,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 protocol_negotiated_; + NextProto protocol_negotiated_; // Type of the domain bound cert that was sent, or CLIENT_CERT_INVALID_TYPE // if none was sent. SSLClientCertType domain_bound_cert_type_; |