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

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

Issue 2625883002: SSLClientSessionCache: Log number of times Lookup is called per Session. (Closed)
Patch Set: reply to comments Created 3 years, 11 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
« no previous file with comments | « no previous file | net/socket/ssl_client_socket_impl.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) 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_IMPL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 bssl::UniquePtr<SSL> ssl_; 299 bssl::UniquePtr<SSL> ssl_;
300 300
301 std::unique_ptr<ClientSocketHandle> transport_; 301 std::unique_ptr<ClientSocketHandle> transport_;
302 std::unique_ptr<SocketBIOAdapter> transport_adapter_; 302 std::unique_ptr<SocketBIOAdapter> transport_adapter_;
303 const HostPortPair host_and_port_; 303 const HostPortPair host_and_port_;
304 SSLConfig ssl_config_; 304 SSLConfig ssl_config_;
305 // ssl_session_cache_shard_ is an opaque string that partitions the SSL 305 // ssl_session_cache_shard_ is an opaque string that partitions the SSL
306 // session cache. i.e. sessions created with one value will not attempt to 306 // session cache. i.e. sessions created with one value will not attempt to
307 // resume on the socket with a different value. 307 // resume on the socket with a different value.
308 const std::string ssl_session_cache_shard_; 308 const std::string ssl_session_cache_shard_;
309 int ssl_session_cache_lookup_count_;
309 310
310 enum State { 311 enum State {
311 STATE_NONE, 312 STATE_NONE,
312 STATE_HANDSHAKE, 313 STATE_HANDSHAKE,
313 STATE_HANDSHAKE_COMPLETE, 314 STATE_HANDSHAKE_COMPLETE,
314 STATE_CHANNEL_ID_LOOKUP, 315 STATE_CHANNEL_ID_LOOKUP,
315 STATE_CHANNEL_ID_LOOKUP_COMPLETE, 316 STATE_CHANNEL_ID_LOOKUP_COMPLETE,
316 STATE_VERIFY_CERT, 317 STATE_VERIFY_CERT,
317 STATE_VERIFY_CERT_COMPLETE, 318 STATE_VERIFY_CERT_COMPLETE,
318 }; 319 };
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 // True if PKP is bypassed due to a local trust anchor. 352 // True if PKP is bypassed due to a local trust anchor.
352 bool pkp_bypassed_; 353 bool pkp_bypassed_;
353 354
354 NetLogWithSource net_log_; 355 NetLogWithSource net_log_;
355 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; 356 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_;
356 }; 357 };
357 358
358 } // namespace net 359 } // namespace net
359 360
360 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ 361 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/socket/ssl_client_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698