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

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: reset count on handshake completion; log count from lookup 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
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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 bssl::UniquePtr<SSL> ssl_; 308 bssl::UniquePtr<SSL> ssl_;
309 309
310 std::unique_ptr<ClientSocketHandle> transport_; 310 std::unique_ptr<ClientSocketHandle> transport_;
311 std::unique_ptr<SocketBIOAdapter> transport_adapter_; 311 std::unique_ptr<SocketBIOAdapter> transport_adapter_;
312 const HostPortPair host_and_port_; 312 const HostPortPair host_and_port_;
313 SSLConfig ssl_config_; 313 SSLConfig ssl_config_;
314 // ssl_session_cache_shard_ is an opaque string that partitions the SSL 314 // ssl_session_cache_shard_ is an opaque string that partitions the SSL
315 // session cache. i.e. sessions created with one value will not attempt to 315 // session cache. i.e. sessions created with one value will not attempt to
316 // resume on the socket with a different value. 316 // resume on the socket with a different value.
317 const std::string ssl_session_cache_shard_; 317 const std::string ssl_session_cache_shard_;
318 size_t ssl_session_cache_lookup_count_;
318 319
319 enum State { 320 enum State {
320 STATE_NONE, 321 STATE_NONE,
321 STATE_HANDSHAKE, 322 STATE_HANDSHAKE,
322 STATE_HANDSHAKE_COMPLETE, 323 STATE_HANDSHAKE_COMPLETE,
323 STATE_CHANNEL_ID_LOOKUP, 324 STATE_CHANNEL_ID_LOOKUP,
324 STATE_CHANNEL_ID_LOOKUP_COMPLETE, 325 STATE_CHANNEL_ID_LOOKUP_COMPLETE,
325 STATE_VERIFY_CERT, 326 STATE_VERIFY_CERT,
326 STATE_VERIFY_CERT_COMPLETE, 327 STATE_VERIFY_CERT_COMPLETE,
327 }; 328 };
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 // True if PKP is bypassed due to a local trust anchor. 361 // True if PKP is bypassed due to a local trust anchor.
361 bool pkp_bypassed_; 362 bool pkp_bypassed_;
362 363
363 NetLogWithSource net_log_; 364 NetLogWithSource net_log_;
364 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_; 365 base::WeakPtrFactory<SSLClientSocketImpl> weak_factory_;
365 }; 366 };
366 367
367 } // namespace net 368 } // namespace net
368 369
369 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_IMPL_H_ 370 #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') | net/socket/ssl_client_socket_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698