OLD | NEW |
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS 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 "update_engine/libcurl_http_fetcher.h" | 5 #include "update_engine/libcurl_http_fetcher.h" |
6 #include <algorithm> | 6 #include <algorithm> |
7 #include "chromeos/obsolete_logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 using std::max; | 9 using std::max; |
10 using std::make_pair; | 10 using std::make_pair; |
11 | 11 |
12 // This is a concrete implementation of HttpFetcher that uses libcurl to do the | 12 // This is a concrete implementation of HttpFetcher that uses libcurl to do the |
13 // http work. | 13 // http work. |
14 | 14 |
15 namespace chromeos_update_engine { | 15 namespace chromeos_update_engine { |
16 | 16 |
17 namespace { | 17 namespace { |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 curl_handle_ = NULL; | 290 curl_handle_ = NULL; |
291 } | 291 } |
292 if (curl_multi_handle_) { | 292 if (curl_multi_handle_) { |
293 CHECK_EQ(curl_multi_cleanup(curl_multi_handle_), CURLM_OK); | 293 CHECK_EQ(curl_multi_cleanup(curl_multi_handle_), CURLM_OK); |
294 curl_multi_handle_ = NULL; | 294 curl_multi_handle_ = NULL; |
295 } | 295 } |
296 transfer_in_progress_ = false; | 296 transfer_in_progress_ = false; |
297 } | 297 } |
298 | 298 |
299 } // namespace chromeos_update_engine | 299 } // namespace chromeos_update_engine |
OLD | NEW |