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

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

Issue 2093873002: Unwind fallback metrics and SSLFailureState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 #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 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "net/base/completion_callback.h" 13 #include "net/base/completion_callback.h"
14 #include "net/base/load_flags.h" 14 #include "net/base/load_flags.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "net/socket/ssl_socket.h" 16 #include "net/socket/ssl_socket.h"
17 #include "net/socket/stream_socket.h" 17 #include "net/socket/stream_socket.h"
18 #include "net/ssl/ssl_failure_state.h"
19 18
20 namespace base { 19 namespace base {
21 class FilePath; 20 class FilePath;
22 class SequencedTaskRunner; 21 class SequencedTaskRunner;
23 } 22 }
24 23
25 namespace crypto { 24 namespace crypto {
26 class ECPrivateKey; 25 class ECPrivateKey;
27 } 26 }
28 27
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Signs the EKM value for Token Binding with |*key| and puts it in |*out|. 144 // Signs the EKM value for Token Binding with |*key| and puts it in |*out|.
146 // Returns a net error code. 145 // Returns a net error code.
147 virtual Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, 146 virtual Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key,
148 std::vector<uint8_t>* out) = 0; 147 std::vector<uint8_t>* out) = 0;
149 148
150 // This method is only for debugging crbug.com/548423 and will be removed when 149 // This method is only for debugging crbug.com/548423 and will be removed when
151 // that bug is closed. This returns the channel ID key that was used when 150 // that bug is closed. This returns the channel ID key that was used when
152 // establishing the connection (or NULL if no channel ID was used). 151 // establishing the connection (or NULL if no channel ID was used).
153 virtual crypto::ECPrivateKey* GetChannelIDKey() const = 0; 152 virtual crypto::ECPrivateKey* GetChannelIDKey() const = 0;
154 153
155 // Returns the state of the handshake when it failed, or |SSL_FAILURE_NONE| if
156 // the handshake succeeded. This is used to classify causes of the TLS version
157 // fallback.
158 virtual SSLFailureState GetSSLFailureState() const = 0;
159
160 protected: 154 protected:
161 void set_negotiation_extension( 155 void set_negotiation_extension(
162 SSLNegotiationExtension negotiation_extension) { 156 SSLNegotiationExtension negotiation_extension) {
163 negotiation_extension_ = negotiation_extension; 157 negotiation_extension_ = negotiation_extension;
164 } 158 }
165 159
166 void set_signed_cert_timestamps_received( 160 void set_signed_cert_timestamps_received(
167 bool signed_cert_timestamps_received) { 161 bool signed_cert_timestamps_received) {
168 signed_cert_timestamps_received_ = signed_cert_timestamps_received; 162 signed_cert_timestamps_received_ = signed_cert_timestamps_received;
169 } 163 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 bool signed_cert_timestamps_received_; 213 bool signed_cert_timestamps_received_;
220 // True if a stapled OCSP response was received. 214 // True if a stapled OCSP response was received.
221 bool stapled_ocsp_response_received_; 215 bool stapled_ocsp_response_received_;
222 // Protocol negotiation extension used. 216 // Protocol negotiation extension used.
223 SSLNegotiationExtension negotiation_extension_; 217 SSLNegotiationExtension negotiation_extension_;
224 }; 218 };
225 219
226 } // namespace net 220 } // namespace net
227 221
228 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_ 222 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698