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

Unified Diff: net/ssl/ssl_client_session_cache.cc

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 side-by-side diff with in-line comments
Download patch
« net/sdch/sdch_owner.h ('K') | « net/ssl/ssl_client_session_cache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_client_session_cache.cc
diff --git a/net/ssl/ssl_client_session_cache.cc b/net/ssl/ssl_client_session_cache.cc
index 4cb6c9ae02527995ec209818b9a192aad24c40c3..b007469b9a9eba3c0c59e9651c622f854ae2ce8c 100644
--- a/net/ssl/ssl_client_session_cache.cc
+++ b/net/ssl/ssl_client_session_cache.cc
@@ -177,22 +177,8 @@ void SSLClientSessionCache::OnMemoryPressure(
}
}
-void SSLClientSessionCache::OnMemoryStateChange(base::MemoryState state) {
- // TODO(hajimehoshi): When the state changes, adjust the sizes of the caches
- // to reduce the limits. SSLClientSessionCache doesn't have the ability to
- // limit at present.
- switch (state) {
- case base::MemoryState::NORMAL:
- break;
- case base::MemoryState::THROTTLED:
- Flush();
- break;
- case base::MemoryState::SUSPENDED:
- // Note: Not supported at present. Fall through.
- case base::MemoryState::UNKNOWN:
- NOTREACHED();
- break;
- }
+void SSLClientSessionCache::OnPurgeMemory() {
+ Flush();
}
} // namespace net
« net/sdch/sdch_owner.h ('K') | « net/ssl/ssl_client_session_cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698