| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/update_client/crx_downloader.h" | 5 #include "components/update_client/crx_downloader.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 18 #include "components/update_client/background_downloader_win.h" | 18 #include "components/update_client/background_downloader_win.h" |
| 19 #endif | 19 #endif |
| 20 #include "components/update_client/url_fetcher_downloader.h" | 20 #include "components/update_client/url_fetcher_downloader.h" |
| 21 #include "components/update_client/utils.h" | 21 #include "components/update_client/utils.h" |
| 22 | 22 |
| 23 namespace update_client { | 23 namespace update_client { |
| 24 | 24 |
| 25 CrxDownloader::Result::Result() | 25 CrxDownloader::Result::Result() |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 return; | 210 return; |
| 211 } | 211 } |
| 212 | 212 |
| 213 // The download ends here since there is no url nor downloader to handle this | 213 // The download ends here since there is no url nor downloader to handle this |
| 214 // download request further. | 214 // download request further. |
| 215 main_task_runner()->PostTask(FROM_HERE, | 215 main_task_runner()->PostTask(FROM_HERE, |
| 216 base::Bind(download_callback_, result)); | 216 base::Bind(download_callback_, result)); |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace update_client | 219 } // namespace update_client |
| OLD | NEW |