| Index: net/http/http_network_session.h
|
| diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
|
| index b4a72ea92f67023a8ebb301a476723f84f7bcde7..688cbdfb0b0c784b4a28c27938526d7518d6609b 100644
|
| --- a/net/http/http_network_session.h
|
| +++ b/net/http/http_network_session.h
|
| @@ -13,6 +13,8 @@
|
| #include <unordered_set>
|
| #include <vector>
|
|
|
| +#include "base/bind.h"
|
| +#include "base/memory/memory_pressure_monitor.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/threading/non_thread_safe.h"
|
| @@ -272,6 +274,10 @@ class NET_EXPORT HttpNetworkSession
|
|
|
| ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type);
|
|
|
| + // Flush sockets on low memory notifications callback.
|
| + void OnMemoryPressure(
|
| + base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
|
| +
|
| NetLog* const net_log_;
|
| HttpServerProperties* const http_server_properties_;
|
| CertVerifier* const cert_verifier_;
|
| @@ -295,6 +301,8 @@ class NET_EXPORT HttpNetworkSession
|
| bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
|
|
|
| Params params_;
|
| +
|
| + std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
|
| };
|
|
|
| } // namespace net
|
|
|