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

Side by Side Diff: net/socket/ssl_client_socket.cc

Issue 8850003: Revert 113409 - Add a new method to SSLClientSocket: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
« no previous file with comments | « net/socket/ssl_client_socket.h ('k') | net/socket/ssl_client_socket_nss.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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
11 SSLClientSocket::SSLClientSocket() 11 SSLClientSocket::SSLClientSocket()
12 : was_npn_negotiated_(false), 12 : was_npn_negotiated_(false),
13 was_spdy_negotiated_(false), 13 was_spdy_negotiated_(false) {
14 was_origin_bound_cert_sent_(false) {
15 } 14 }
16 15
17 SSLClientSocket::NextProto SSLClientSocket::NextProtoFromString( 16 SSLClientSocket::NextProto SSLClientSocket::NextProtoFromString(
18 const std::string& proto_string) { 17 const std::string& proto_string) {
19 if (proto_string == "http1.1" || proto_string == "http/1.1") { 18 if (proto_string == "http1.1" || proto_string == "http/1.1") {
20 return kProtoHTTP11; 19 return kProtoHTTP11;
21 } else if (proto_string == "spdy/1") { 20 } else if (proto_string == "spdy/1") {
22 return kProtoSPDY1; 21 return kProtoSPDY1;
23 } else if (proto_string == "spdy/2") { 22 } else if (proto_string == "spdy/2") {
24 return kProtoSPDY2; 23 return kProtoSPDY2;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 83 }
85 84
86 bool SSLClientSocket::was_spdy_negotiated() const { 85 bool SSLClientSocket::was_spdy_negotiated() const {
87 return was_spdy_negotiated_; 86 return was_spdy_negotiated_;
88 } 87 }
89 88
90 bool SSLClientSocket::set_was_spdy_negotiated(bool negotiated) { 89 bool SSLClientSocket::set_was_spdy_negotiated(bool negotiated) {
91 return was_spdy_negotiated_ = negotiated; 90 return was_spdy_negotiated_ = negotiated;
92 } 91 }
93 92
94 bool SSLClientSocket::was_origin_bound_cert_sent() const {
95 return was_origin_bound_cert_sent_;
96 }
97
98 bool SSLClientSocket::set_was_origin_bound_cert_sent(bool sent) {
99 return was_origin_bound_cert_sent_ = sent;
100 }
101
102 } // namespace net 93 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket.h ('k') | net/socket/ssl_client_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698