| 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 #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 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "net/dns/host_resolver.h" | 26 #include "net/dns/host_resolver.h" |
| 27 #include "net/http/http_auth_cache.h" | 27 #include "net/http/http_auth_cache.h" |
| 28 #include "net/http/http_stream_factory.h" | 28 #include "net/http/http_stream_factory.h" |
| 29 #include "net/quic/chromium/quic_stream_factory.h" | 29 #include "net/quic/chromium/quic_stream_factory.h" |
| 30 #include "net/socket/next_proto.h" | 30 #include "net/socket/next_proto.h" |
| 31 #include "net/spdy/spdy_session_pool.h" | 31 #include "net/spdy/spdy_session_pool.h" |
| 32 #include "net/ssl/ssl_client_auth_cache.h" | 32 #include "net/ssl/ssl_client_auth_cache.h" |
| 33 | 33 |
| 34 namespace base { | 34 namespace base { |
| 35 class Value; | 35 class Value; |
| 36 namespace trace_event { |
| 37 class MemoryAllocatorDump; |
| 38 } |
| 36 } | 39 } |
| 37 | 40 |
| 38 namespace net { | 41 namespace net { |
| 39 | 42 |
| 40 class CTPolicyEnforcer; | 43 class CTPolicyEnforcer; |
| 41 class CertVerifier; | 44 class CertVerifier; |
| 42 class ChannelIDService; | 45 class ChannelIDService; |
| 43 class ClientSocketFactory; | 46 class ClientSocketFactory; |
| 44 class ClientSocketPoolManager; | 47 class ClientSocketPoolManager; |
| 45 class CTVerifier; | 48 class CTVerifier; |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 274 |
| 272 // Populates |*alpn_protos| with protocols to be used with ALPN. | 275 // Populates |*alpn_protos| with protocols to be used with ALPN. |
| 273 void GetAlpnProtos(NextProtoVector* alpn_protos) const; | 276 void GetAlpnProtos(NextProtoVector* alpn_protos) const; |
| 274 | 277 |
| 275 // Populates |server_config| and |proxy_config| based on this session and | 278 // Populates |server_config| and |proxy_config| based on this session and |
| 276 // |request|. | 279 // |request|. |
| 277 void GetSSLConfig(const HttpRequestInfo& request, | 280 void GetSSLConfig(const HttpRequestInfo& request, |
| 278 SSLConfig* server_config, | 281 SSLConfig* server_config, |
| 279 SSLConfig* proxy_config) const; | 282 SSLConfig* proxy_config) const; |
| 280 | 283 |
| 284 // Called by associated URLRequestContext to dump memory allocation stats. |
| 285 // |url_request_context_dump| is the MemoryAllocatorDump of the associated |
| 286 // URLRequestContext. |
| 287 void DumpMemoryStats( |
| 288 base::trace_event::MemoryAllocatorDump* url_request_context_dump) const; |
| 289 |
| 281 private: | 290 private: |
| 282 friend class HttpNetworkSessionPeer; | 291 friend class HttpNetworkSessionPeer; |
| 283 | 292 |
| 284 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); | 293 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); |
| 285 | 294 |
| 286 // Flush sockets on low memory notifications callback. | 295 // Flush sockets on low memory notifications callback. |
| 287 void OnMemoryPressure( | 296 void OnMemoryPressure( |
| 288 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 297 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
| 289 | 298 |
| 290 // base::MemoryCoordinatorClient implementation: | 299 // base::MemoryCoordinatorClient implementation: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 314 NextProtoVector next_protos_; | 323 NextProtoVector next_protos_; |
| 315 | 324 |
| 316 Params params_; | 325 Params params_; |
| 317 | 326 |
| 318 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 327 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 319 }; | 328 }; |
| 320 | 329 |
| 321 } // namespace net | 330 } // namespace net |
| 322 | 331 |
| 323 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 332 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |