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

Unified Diff: net/spdy/spdy_session.cc

Issue 9958028: Add a new GetNegotiatedProtocol method to StreamSocket and implement in all subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 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/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index d338fcdf5fd98cdc0fc7b3588f460cd26e84ba3d..0d6b352da8e85016d0ac95b89c2e42280255546e 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -426,7 +426,7 @@ net::Error SpdySession::InitializeWithSocket(
NextProto protocol = g_default_protocol;
if (is_secure_) {
SSLClientSocket* ssl_socket = GetSSLClientSocket();
- NextProto protocol_negotiated = ssl_socket->protocol_negotiated();
+ NextProto protocol_negotiated = ssl_socket->GetNegotiatedProtocol();
if (protocol_negotiated != kProtoUnknown) {
protocol = protocol_negotiated;
}
@@ -621,7 +621,7 @@ bool SpdySession::NeedsCredentials() const {
if (!is_secure_)
return false;
SSLClientSocket* ssl_socket = GetSSLClientSocket();
- if (ssl_socket->protocol_negotiated() < kProtoSPDY3)
+ if (ssl_socket->GetNegotiatedProtocol() < kProtoSPDY3)
return false;
return ssl_socket->WasDomainBoundCertSent();
}
@@ -1175,7 +1175,7 @@ Value* SpdySession::GetInfoAsValue() const {
NextProto proto = kProtoUnknown;
if (is_secure_) {
- proto = GetSSLClientSocket()->protocol_negotiated();
+ proto = GetSSLClientSocket()->GetNegotiatedProtocol();
}
dict->SetString("protocol_negotiated",
SSLClientSocket::NextProtoToString(proto));
@@ -1283,7 +1283,7 @@ bool SpdySession::GetSSLInfo(SSLInfo* ssl_info,
SSLClientSocket* ssl_socket = GetSSLClientSocket();
ssl_socket->GetSSLInfo(ssl_info);
*was_npn_negotiated = ssl_socket->was_npn_negotiated();
- *protocol_negotiated = ssl_socket->protocol_negotiated();
+ *protocol_negotiated = ssl_socket->GetNegotiatedProtocol();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698