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

Side by Side Diff: net/socket/ssl_client_socket.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: cleanup Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/socket/ssl_client_socket.h" 5 #include "net/socket/ssl_client_socket.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 SSLClientCertType SSLClientSocket::domain_bound_cert_type() const { 129 SSLClientCertType SSLClientSocket::domain_bound_cert_type() const {
130 return domain_bound_cert_type_; 130 return domain_bound_cert_type_;
131 } 131 }
132 132
133 SSLClientCertType SSLClientSocket::set_domain_bound_cert_type( 133 SSLClientCertType SSLClientSocket::set_domain_bound_cert_type(
134 SSLClientCertType type) { 134 SSLClientCertType type) {
135 return domain_bound_cert_type_ = type; 135 return domain_bound_cert_type_ = type;
136 } 136 }
137 137
138 NextProto SSLClientSocket::GetNegotiatedProtocol() const {
139 return static_cast<NextProto>(protocol_negotiated());
wtc 2012/03/30 21:19:14 Remove static_cast because protocol_negotiated() r
Ryan Hamilton 2012/03/30 21:53:17 Done.
140 }
141
138 } // namespace net 142 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698