OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "net/http/http_network_layer.h" | 5 #include "net/http/http_network_layer.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
9 #include "base/string_split.h" | 9 #include "base/string_split.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 145 } |
146 | 146 |
147 HttpCache* HttpNetworkLayer::GetCache() { | 147 HttpCache* HttpNetworkLayer::GetCache() { |
148 return NULL; | 148 return NULL; |
149 } | 149 } |
150 | 150 |
151 HttpNetworkSession* HttpNetworkLayer::GetSession() { | 151 HttpNetworkSession* HttpNetworkLayer::GetSession() { |
152 return session_; | 152 return session_; |
153 } | 153 } |
154 | 154 |
155 void HttpNetworkLayer::Suspend(bool suspend) { | 155 void HttpNetworkLayer::OnSuspend() { |
156 suspended_ = suspend; | 156 suspended_ = true; |
157 | 157 |
158 if (suspend && session_) | 158 if (session_) |
159 session_->CloseIdleConnections(); | 159 session_->CloseIdleConnections(); |
160 } | 160 } |
161 | 161 |
| 162 void HttpNetworkLayer::OnResume() { |
| 163 suspended_ = false; |
| 164 } |
| 165 |
162 } // namespace net | 166 } // namespace net |
OLD | NEW |