Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1045)

Unified Diff: net/socket/ssl_client_socket_nss.h

Issue 8156001: net: rework the NPN patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/socket/ssl_client_socket_nss.h
diff --git a/net/socket/ssl_client_socket_nss.h b/net/socket/ssl_client_socket_nss.h
index 4cc681a66c4b59e817201da305701c6595b5053c..3e2de55887df4e1496202efb971a072dccc47a1e 100644
--- a/net/socket/ssl_client_socket_nss.h
+++ b/net/socket/ssl_client_socket_nss.h
@@ -188,6 +188,13 @@ class SSLClientSocketNSS : public SSLClientSocket {
// argument.
static void HandshakeCallback(PRFileDesc* socket, void* arg);
+ static SECStatus NextProtoCallback(void* arg,
+ PRFileDesc* fd,
+ const unsigned char* protos,
+ unsigned short protos_len,
+ unsigned char* proto_out,
+ unsigned char* proto_out_len);
+
// The following methods are for debugging bug 65948. Will remove this code
// after fixing bug 65948.
void EnsureThreadIdAssigned() const;
@@ -285,6 +292,10 @@ class SSLClientSocketNSS : public SSLClientSocket {
scoped_ptr<SSLHostInfo> ssl_host_info_;
DnsCertProvenanceChecker* const dns_cert_checker_;
+ // next_proto is the protocol that we selected by NPN.
wtc 2011/10/05 23:34:25 Typo: next_proto => next_proto_
agl 2011/10/07 19:19:17 Done.
+ std::string next_proto_;
+ NextProtoStatus next_proto_status_;
+
// The following two variables are added for debugging bug 65948. Will
// remove this code after fixing bug 65948.
// Added the following code Debugging in release mode.

Powered by Google App Engine
This is Rietveld 408576698