OLD | NEW |
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/transport_client_socket_pool.h" | 5 #include "net/socket/transport_client_socket_pool.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "base/profiler/scoped_tracker.h" | 15 #include "base/profiler/scoped_tracker.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "base/trace_event/trace_event.h" | 19 #include "base/trace_event/trace_event.h" |
20 #include "base/values.h" | 20 #include "base/values.h" |
21 #include "net/base/ip_endpoint.h" | 21 #include "net/base/ip_endpoint.h" |
22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
23 #include "net/base/socket_performance_watcher.h" | |
24 #include "net/base/socket_performance_watcher_factory.h" | |
25 #include "net/log/net_log.h" | 23 #include "net/log/net_log.h" |
26 #include "net/socket/client_socket_factory.h" | 24 #include "net/socket/client_socket_factory.h" |
27 #include "net/socket/client_socket_handle.h" | 25 #include "net/socket/client_socket_handle.h" |
28 #include "net/socket/client_socket_pool_base.h" | 26 #include "net/socket/client_socket_pool_base.h" |
29 #include "net/socket/socket_net_log_params.h" | 27 #include "net/socket/socket_net_log_params.h" |
| 28 #include "net/socket/socket_performance_watcher.h" |
| 29 #include "net/socket/socket_performance_watcher_factory.h" |
30 #include "net/socket/tcp_client_socket.h" | 30 #include "net/socket/tcp_client_socket.h" |
31 | 31 |
32 using base::TimeDelta; | 32 using base::TimeDelta; |
33 | 33 |
34 namespace net { | 34 namespace net { |
35 | 35 |
36 // TODO(willchan): Base this off RTT instead of statically setting it. Note we | 36 // TODO(willchan): Base this off RTT instead of statically setting it. Note we |
37 // choose a timeout that is different from the backup connect job timer so they | 37 // choose a timeout that is different from the backup connect job timer so they |
38 // don't synchronize. | 38 // don't synchronize. |
39 const int TransportConnectJobHelper::kIPv6FallbackTimerInMs = 300; | 39 const int TransportConnectJobHelper::kIPv6FallbackTimerInMs = 300; |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 HigherLayeredPool* higher_pool) { | 644 HigherLayeredPool* higher_pool) { |
645 base_.AddHigherLayeredPool(higher_pool); | 645 base_.AddHigherLayeredPool(higher_pool); |
646 } | 646 } |
647 | 647 |
648 void TransportClientSocketPool::RemoveHigherLayeredPool( | 648 void TransportClientSocketPool::RemoveHigherLayeredPool( |
649 HigherLayeredPool* higher_pool) { | 649 HigherLayeredPool* higher_pool) { |
650 base_.RemoveHigherLayeredPool(higher_pool); | 650 base_.RemoveHigherLayeredPool(higher_pool); |
651 } | 651 } |
652 | 652 |
653 } // namespace net | 653 } // namespace net |
OLD | NEW |