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

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

Issue 2679903002: Replace OnMemoryStateChange() with OnPurgeMemory() in net/ (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/sdch/sdch_owner.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 private: 312 private:
313 friend class HttpNetworkSessionPeer; 313 friend class HttpNetworkSessionPeer;
314 314
315 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); 315 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type);
316 316
317 // Flush sockets on low memory notifications callback. 317 // Flush sockets on low memory notifications callback.
318 void OnMemoryPressure( 318 void OnMemoryPressure(
319 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 319 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
320 320
321 // base::MemoryCoordinatorClient implementation: 321 // base::MemoryCoordinatorClient implementation:
322 void OnMemoryStateChange(base::MemoryState state) override; 322 void OnPurgeMemory() override;
323 323
324 NetLog* const net_log_; 324 NetLog* const net_log_;
325 HttpServerProperties* const http_server_properties_; 325 HttpServerProperties* const http_server_properties_;
326 CertVerifier* const cert_verifier_; 326 CertVerifier* const cert_verifier_;
327 HttpAuthHandlerFactory* const http_auth_handler_factory_; 327 HttpAuthHandlerFactory* const http_auth_handler_factory_;
328 328
329 // Not const since it's modified by HttpNetworkSessionPeer for testing. 329 // Not const since it's modified by HttpNetworkSessionPeer for testing.
330 ProxyService* proxy_service_; 330 ProxyService* proxy_service_;
331 const scoped_refptr<SSLConfigService> ssl_config_service_; 331 const scoped_refptr<SSLConfigService> ssl_config_service_;
332 332
(...skipping 13 matching lines...) Expand all
346 NextProtoVector next_protos_; 346 NextProtoVector next_protos_;
347 347
348 Params params_; 348 Params params_;
349 349
350 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 350 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
351 }; 351 };
352 352
353 } // namespace net 353 } // namespace net
354 354
355 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 355 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/sdch/sdch_owner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698