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/log/net_log.h" | 23 #include "net/log/net_log.h" |
24 #include "net/log/net_log_event_type.h" | 24 #include "net/log/net_log_event_type.h" |
25 #include "net/log/net_log_source_type.h" | 25 #include "net/log/net_log_source_type.h" |
| 26 #include "net/log/net_log_with_source.h" |
26 #include "net/socket/client_socket_factory.h" | 27 #include "net/socket/client_socket_factory.h" |
27 #include "net/socket/client_socket_handle.h" | 28 #include "net/socket/client_socket_handle.h" |
28 #include "net/socket/client_socket_pool_base.h" | 29 #include "net/socket/client_socket_pool_base.h" |
29 #include "net/socket/socket_net_log_params.h" | 30 #include "net/socket/socket_net_log_params.h" |
30 #include "net/socket/socket_performance_watcher.h" | 31 #include "net/socket/socket_performance_watcher.h" |
31 #include "net/socket/socket_performance_watcher_factory.h" | 32 #include "net/socket/socket_performance_watcher_factory.h" |
32 #include "net/socket/tcp_client_socket.h" | 33 #include "net/socket/tcp_client_socket.h" |
33 | 34 |
34 using base::TimeDelta; | 35 using base::TimeDelta; |
35 | 36 |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 HigherLayeredPool* higher_pool) { | 655 HigherLayeredPool* higher_pool) { |
655 base_.AddHigherLayeredPool(higher_pool); | 656 base_.AddHigherLayeredPool(higher_pool); |
656 } | 657 } |
657 | 658 |
658 void TransportClientSocketPool::RemoveHigherLayeredPool( | 659 void TransportClientSocketPool::RemoveHigherLayeredPool( |
659 HigherLayeredPool* higher_pool) { | 660 HigherLayeredPool* higher_pool) { |
660 base_.RemoveHigherLayeredPool(higher_pool); | 661 base_.RemoveHigherLayeredPool(higher_pool); |
661 } | 662 } |
662 | 663 |
663 } // namespace net | 664 } // namespace net |
OLD | NEW |