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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 // |request|. | 291 // |request|. |
292 void GetSSLConfig(const HttpRequestInfo& request, | 292 void GetSSLConfig(const HttpRequestInfo& request, |
293 SSLConfig* server_config, | 293 SSLConfig* server_config, |
294 SSLConfig* proxy_config) const; | 294 SSLConfig* proxy_config) const; |
295 | 295 |
296 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name | 296 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name |
297 // used by the parent MemoryAllocatorDump in the memory dump hierarchy. | 297 // used by the parent MemoryAllocatorDump in the memory dump hierarchy. |
298 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd, | 298 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd, |
299 const std::string& parent_absolute_name) const; | 299 const std::string& parent_absolute_name) const; |
300 | 300 |
| 301 // Evaluates if QUIC is enabled for new streams. |
| 302 bool IsQuicEnabled() const; |
| 303 |
| 304 // Disable QUIC for new streams. |
| 305 void DisableQuic(); |
| 306 |
301 private: | 307 private: |
302 friend class HttpNetworkSessionPeer; | 308 friend class HttpNetworkSessionPeer; |
303 | 309 |
304 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); | 310 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); |
305 | 311 |
306 // Flush sockets on low memory notifications callback. | 312 // Flush sockets on low memory notifications callback. |
307 void OnMemoryPressure( | 313 void OnMemoryPressure( |
308 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 314 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
309 | 315 |
310 // base::MemoryCoordinatorClient implementation: | 316 // base::MemoryCoordinatorClient implementation: |
(...skipping 24 matching lines...) Expand all Loading... |
335 NextProtoVector next_protos_; | 341 NextProtoVector next_protos_; |
336 | 342 |
337 Params params_; | 343 Params params_; |
338 | 344 |
339 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 345 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
340 }; | 346 }; |
341 | 347 |
342 } // namespace net | 348 } // namespace net |
343 | 349 |
344 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 350 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |