Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: net/http/http_network_session.h

Issue 2648323005: memory coordinator: Add MemoryCoordinatorClient::OnPurgeMemory() (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 private: 307 private:
308 friend class HttpNetworkSessionPeer; 308 friend class HttpNetworkSessionPeer;
309 309
310 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); 310 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type);
311 311
312 // Flush sockets on low memory notifications callback. 312 // Flush sockets on low memory notifications callback.
313 void OnMemoryPressure( 313 void OnMemoryPressure(
314 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 314 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
315 315
316 // base::MemoryCoordinatorClient implementation: 316 // base::MemoryCoordinatorClient implementation:
317 void OnMemoryStateChange(base::MemoryState state) override; 317 void OnPurgeMemory() override;
318 318
319 NetLog* const net_log_; 319 NetLog* const net_log_;
320 HttpServerProperties* const http_server_properties_; 320 HttpServerProperties* const http_server_properties_;
321 CertVerifier* const cert_verifier_; 321 CertVerifier* const cert_verifier_;
322 HttpAuthHandlerFactory* const http_auth_handler_factory_; 322 HttpAuthHandlerFactory* const http_auth_handler_factory_;
323 323
324 // Not const since it's modified by HttpNetworkSessionPeer for testing. 324 // Not const since it's modified by HttpNetworkSessionPeer for testing.
325 ProxyService* proxy_service_; 325 ProxyService* proxy_service_;
326 const scoped_refptr<SSLConfigService> ssl_config_service_; 326 const scoped_refptr<SSLConfigService> ssl_config_service_;
327 327
(...skipping 13 matching lines...) Expand all
341 NextProtoVector next_protos_; 341 NextProtoVector next_protos_;
342 342
343 Params params_; 343 Params params_;
344 344
345 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 345 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
346 }; 346 };
347 347
348 } // namespace net 348 } // namespace net
349 349
350 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 350 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698