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

Unified Diff: net/http/http_network_layer.cc

Issue 7043007: Kill URLRequestJobTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge. Created 9 years, 7 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
« no previous file with comments | « net/http/http_network_layer.h ('k') | net/http/http_network_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_layer.cc
diff --git a/net/http/http_network_layer.cc b/net/http/http_network_layer.cc
index ce3fab89f066755a12bad8515b4549f98d9a56d0..68bc5f841294902e50d1a12de3c39ec93fa108dd 100644
--- a/net/http/http_network_layer.cc
+++ b/net/http/http_network_layer.cc
@@ -152,11 +152,15 @@ HttpNetworkSession* HttpNetworkLayer::GetSession() {
return session_;
}
-void HttpNetworkLayer::Suspend(bool suspend) {
- suspended_ = suspend;
+void HttpNetworkLayer::OnSuspend() {
+ suspended_ = true;
- if (suspend && session_)
+ if (session_)
session_->CloseIdleConnections();
}
+void HttpNetworkLayer::OnResume() {
+ suspended_ = false;
+}
+
} // namespace net
« no previous file with comments | « net/http/http_network_layer.h ('k') | net/http/http_network_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698