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

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

Issue 2533063002: Fix Net.Socket.IdleSocketTimeSaving histogram (Closed)
Patch Set: self review Created 4 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
« no previous file with comments | « net/socket/ssl_client_socket_pool.h ('k') | net/socket/transport_client_socket_pool.h » ('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 #include "net/socket/ssl_client_socket_pool.h" 5 #include "net/socket/ssl_client_socket_pool.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 static_cast<const scoped_refptr<SSLSocketParams>*>(params); 602 static_cast<const scoped_refptr<SSLSocketParams>*>(params);
603 603
604 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log); 604 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log);
605 } 605 }
606 606
607 void SSLClientSocketPool::CancelRequest(const std::string& group_name, 607 void SSLClientSocketPool::CancelRequest(const std::string& group_name,
608 ClientSocketHandle* handle) { 608 ClientSocketHandle* handle) {
609 base_.CancelRequest(group_name, handle); 609 base_.CancelRequest(group_name, handle);
610 } 610 }
611 611
612 void SSLClientSocketPool::ReleaseSocket(const std::string& group_name, 612 void SSLClientSocketPool::ReleaseSocket(
613 std::unique_ptr<StreamSocket> socket, 613 const std::string& group_name,
614 int id) { 614 std::unique_ptr<StreamSocket> socket,
615 base_.ReleaseSocket(group_name, std::move(socket), id); 615 int id,
616 const LoadTimingInfo::ConnectTiming& connect_timing) {
617 base_.ReleaseSocket(group_name, std::move(socket), id, connect_timing);
616 } 618 }
617 619
618 void SSLClientSocketPool::FlushWithError(int error) { 620 void SSLClientSocketPool::FlushWithError(int error) {
619 base_.FlushWithError(error); 621 base_.FlushWithError(error);
620 } 622 }
621 623
622 void SSLClientSocketPool::CloseIdleSockets() { 624 void SSLClientSocketPool::CloseIdleSockets() {
623 base_.CloseIdleSockets(); 625 base_.CloseIdleSockets();
624 } 626 }
625 627
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 if (base_.CloseOneIdleSocket()) 687 if (base_.CloseOneIdleSocket())
686 return true; 688 return true;
687 return base_.CloseOneIdleConnectionInHigherLayeredPool(); 689 return base_.CloseOneIdleConnectionInHigherLayeredPool();
688 } 690 }
689 691
690 void SSLClientSocketPool::OnSSLConfigChanged() { 692 void SSLClientSocketPool::OnSSLConfigChanged() {
691 FlushWithError(ERR_NETWORK_CHANGED); 693 FlushWithError(ERR_NETWORK_CHANGED);
692 } 694 }
693 695
694 } // namespace net 696 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.h ('k') | net/socket/transport_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698