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/http/http_network_session.h" | 5 #include "net/http/http_network_session.h" |
6 | 6 |
7 #include <inttypes.h> | 7 #include <inttypes.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "net/quic/chromium/quic_stream_factory.h" | 32 #include "net/quic/chromium/quic_stream_factory.h" |
33 #include "net/quic/core/crypto/quic_random.h" | 33 #include "net/quic/core/crypto/quic_random.h" |
34 #include "net/quic/core/quic_packets.h" | 34 #include "net/quic/core/quic_packets.h" |
35 #include "net/quic/core/quic_tag.h" | 35 #include "net/quic/core/quic_tag.h" |
36 #include "net/quic/core/quic_utils.h" | 36 #include "net/quic/core/quic_utils.h" |
37 #include "net/quic/platform/impl/quic_chromium_clock.h" | 37 #include "net/quic/platform/impl/quic_chromium_clock.h" |
38 #include "net/socket/client_socket_factory.h" | 38 #include "net/socket/client_socket_factory.h" |
39 #include "net/socket/client_socket_pool_manager_impl.h" | 39 #include "net/socket/client_socket_pool_manager_impl.h" |
40 #include "net/socket/next_proto.h" | 40 #include "net/socket/next_proto.h" |
41 #include "net/socket/ssl_client_socket.h" | 41 #include "net/socket/ssl_client_socket.h" |
42 #include "net/spdy/spdy_session_pool.h" | 42 #include "net/spdy/chromium/spdy_session_pool.h" |
43 | 43 |
44 namespace net { | 44 namespace net { |
45 | 45 |
46 namespace { | 46 namespace { |
47 | 47 |
48 base::StaticAtomicSequenceNumber g_next_shard_id; | 48 base::StaticAtomicSequenceNumber g_next_shard_id; |
49 | 49 |
50 ClientSocketPoolManager* CreateSocketPoolManager( | 50 ClientSocketPoolManager* CreateSocketPoolManager( |
51 HttpNetworkSession::SocketPoolType pool_type, | 51 HttpNetworkSession::SocketPoolType pool_type, |
52 const HttpNetworkSession::Params& params, | 52 const HttpNetworkSession::Params& params, |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 CloseIdleConnections(); | 474 CloseIdleConnections(); |
475 break; | 475 break; |
476 } | 476 } |
477 } | 477 } |
478 | 478 |
479 void HttpNetworkSession::OnPurgeMemory() { | 479 void HttpNetworkSession::OnPurgeMemory() { |
480 CloseIdleConnections(); | 480 CloseIdleConnections(); |
481 } | 481 } |
482 | 482 |
483 } // namespace net | 483 } // namespace net |
OLD | NEW |