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

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

Issue 8869004: Revert 113419 - Revert 113409 - Add a new method to SSLClientSocket: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix nit 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 | « no previous file | net/socket/ssl_client_socket.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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 static bool IgnoreCertError(int error, int load_flags); 119 static bool IgnoreCertError(int error, int load_flags);
120 120
121 virtual bool was_npn_negotiated() const; 121 virtual bool was_npn_negotiated() const;
122 122
123 virtual bool set_was_npn_negotiated(bool negotiated); 123 virtual bool set_was_npn_negotiated(bool negotiated);
124 124
125 virtual bool was_spdy_negotiated() const; 125 virtual bool was_spdy_negotiated() const;
126 126
127 virtual bool set_was_spdy_negotiated(bool negotiated); 127 virtual bool set_was_spdy_negotiated(bool negotiated);
128 128
129 // Returns true if an origin bound certificate was sent on this connection.
130 // This may be useful for protocols, like SPDY, which allow the same
131 // connection to be shared between multiple origins, each of which need
132 // an origin bound certificate.
133 virtual bool was_origin_bound_cert_sent() const;
134
135 virtual bool set_was_origin_bound_cert_sent(bool sent);
136
129 private: 137 private:
130 // True if NPN was responded to, independent of selecting SPDY or HTTP. 138 // True if NPN was responded to, independent of selecting SPDY or HTTP.
131 bool was_npn_negotiated_; 139 bool was_npn_negotiated_;
132 // True if NPN successfully negotiated SPDY. 140 // True if NPN successfully negotiated SPDY.
133 bool was_spdy_negotiated_; 141 bool was_spdy_negotiated_;
142 // True if an origin bound certificate was sent.
143 bool was_origin_bound_cert_sent_;
134 }; 144 };
135 145
136 } // namespace net 146 } // namespace net
137 147
138 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ 148 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « no previous file | net/socket/ssl_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698