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

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
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | remoting/jingle_glue/ssl_socket_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index 38153578815206c93188ba00414a55c86fef2e35..203f3287191932eeaef3ec14cb3dc2815cfbdd6f 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -438,7 +438,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;
}
@@ -633,7 +633,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();
}
@@ -1187,7 +1187,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));
@@ -1307,7 +1307,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;
}
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | remoting/jingle_glue/ssl_socket_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698