OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/download/url_downloader.h" | 5 #include "content/browser/download/url_downloader.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/sequenced_task_runner.h" |
10 #include "base/threading/sequenced_task_runner_handle.h" | 11 #include "base/threading/sequenced_task_runner_handle.h" |
11 #include "content/browser/byte_stream.h" | 12 #include "content/browser/byte_stream.h" |
12 #include "content/browser/download/download_create_info.h" | 13 #include "content/browser/download/download_create_info.h" |
13 #include "content/browser/download/download_request_handle.h" | 14 #include "content/browser/download/download_request_handle.h" |
14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/download_interrupt_reasons.h" | 16 #include "content/public/browser/download_interrupt_reasons.h" |
16 #include "content/public/browser/download_save_info.h" | 17 #include "content/public/browser/download_save_info.h" |
17 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
18 #include "net/base/load_flags.h" | 19 #include "net/base/load_flags.h" |
19 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 } | 235 } |
235 | 236 |
236 void UrlDownloader::Destroy() { | 237 void UrlDownloader::Destroy() { |
237 BrowserThread::PostTask( | 238 BrowserThread::PostTask( |
238 BrowserThread::UI, FROM_HERE, | 239 BrowserThread::UI, FROM_HERE, |
239 base::Bind(&UrlDownloader::Delegate::OnUrlDownloaderStopped, delegate_, | 240 base::Bind(&UrlDownloader::Delegate::OnUrlDownloaderStopped, delegate_, |
240 this)); | 241 this)); |
241 } | 242 } |
242 | 243 |
243 } // namespace content | 244 } // namespace content |
OLD | NEW |