| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HTTP_HTTP_NETWORK_SESSION_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ | 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
| 12 #include "net/base/host_port_pair.h" | 12 #include "net/base/host_port_pair.h" |
| 13 #include "net/base/host_resolver.h" | 13 #include "net/base/host_resolver.h" |
| 14 #include "net/base/net_api.h" | 14 #include "net/base/net_api.h" |
| 15 #include "net/base/ssl_client_auth_cache.h" | 15 #include "net/base/ssl_client_auth_cache.h" |
| 16 #include "net/http/http_alternate_protocols.h" | 16 #include "net/http/http_alternate_protocols.h" |
| 17 #include "net/http/http_auth_cache.h" | 17 #include "net/http/http_auth_cache.h" |
| 18 #include "net/http/http_stream_factory.h" | 18 #include "net/http/http_stream_factory.h" |
| 19 #include "net/socket/client_socket_pool_manager.h" | 19 #include "net/socket/client_socket_pool_manager.h" |
| 20 #include "net/spdy/spdy_session_pool.h" | 20 #include "net/spdy/spdy_session_pool.h" |
| 21 #include "net/spdy/spdy_settings_storage.h" | 21 #include "net/spdy/spdy_settings_storage.h" |
| 22 | 22 |
| 23 namespace base { |
| 23 class Value; | 24 class Value; |
| 25 } |
| 24 | 26 |
| 25 namespace net { | 27 namespace net { |
| 26 | 28 |
| 27 class CertVerifier; | 29 class CertVerifier; |
| 28 class ClientSocketFactory; | 30 class ClientSocketFactory; |
| 29 class DnsCertProvenanceChecker; | 31 class DnsCertProvenanceChecker; |
| 30 class DnsRRResolver; | 32 class DnsRRResolver; |
| 31 class HostResolver; | 33 class HostResolver; |
| 32 class HttpAuthHandlerFactory; | 34 class HttpAuthHandlerFactory; |
| 33 class HttpNetworkSessionPeer; | 35 class HttpNetworkSessionPeer; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 HttpStreamFactory* http_stream_factory() { | 122 HttpStreamFactory* http_stream_factory() { |
| 121 return http_stream_factory_.get(); | 123 return http_stream_factory_.get(); |
| 122 } | 124 } |
| 123 | 125 |
| 124 NetLog* net_log() { | 126 NetLog* net_log() { |
| 125 return net_log_; | 127 return net_log_; |
| 126 } | 128 } |
| 127 | 129 |
| 128 // Creates a Value summary of the state of the socket pools. The caller is | 130 // Creates a Value summary of the state of the socket pools. The caller is |
| 129 // responsible for deleting the returned value. | 131 // responsible for deleting the returned value. |
| 130 Value* SocketPoolInfoToValue() const; | 132 base::Value* SocketPoolInfoToValue() const; |
| 131 | 133 |
| 132 // Creates a Value summary of the state of the SPDY sessions. The caller is | 134 // Creates a Value summary of the state of the SPDY sessions. The caller is |
| 133 // responsible for deleting the returned value. | 135 // responsible for deleting the returned value. |
| 134 Value* SpdySessionPoolInfoToValue() const; | 136 base::Value* SpdySessionPoolInfoToValue() const; |
| 135 | 137 |
| 136 void CloseAllConnections(); | 138 void CloseAllConnections(); |
| 137 void CloseIdleConnections(); | 139 void CloseIdleConnections(); |
| 138 | 140 |
| 139 private: | 141 private: |
| 140 friend class base::RefCounted<HttpNetworkSession>; | 142 friend class base::RefCounted<HttpNetworkSession>; |
| 141 friend class HttpNetworkSessionPeer; | 143 friend class HttpNetworkSessionPeer; |
| 142 | 144 |
| 143 ~HttpNetworkSession(); | 145 ~HttpNetworkSession(); |
| 144 | 146 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 156 HttpAlternateProtocols alternate_protocols_; | 158 HttpAlternateProtocols alternate_protocols_; |
| 157 ClientSocketPoolManager socket_pool_manager_; | 159 ClientSocketPoolManager socket_pool_manager_; |
| 158 SpdySessionPool spdy_session_pool_; | 160 SpdySessionPool spdy_session_pool_; |
| 159 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 161 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
| 160 std::set<HttpResponseBodyDrainer*> response_drainers_; | 162 std::set<HttpResponseBodyDrainer*> response_drainers_; |
| 161 }; | 163 }; |
| 162 | 164 |
| 163 } // namespace net | 165 } // namespace net |
| 164 | 166 |
| 165 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 167 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |