| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/download_manager_impl.h" | 5 #include "content/browser/download/download_manager_impl.h" |
| 6 | 6 |
| 7 #include <iterator> | 7 #include <iterator> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include "content/public/browser/notification_types.h" | 41 #include "content/public/browser/notification_types.h" |
| 42 #include "content/public/browser/render_process_host.h" | 42 #include "content/public/browser/render_process_host.h" |
| 43 #include "content/public/browser/resource_context.h" | 43 #include "content/public/browser/resource_context.h" |
| 44 #include "content/public/browser/web_contents_delegate.h" | 44 #include "content/public/browser/web_contents_delegate.h" |
| 45 #include "content/public/common/referrer.h" | 45 #include "content/public/common/referrer.h" |
| 46 #include "net/base/elements_upload_data_stream.h" | 46 #include "net/base/elements_upload_data_stream.h" |
| 47 #include "net/base/load_flags.h" | 47 #include "net/base/load_flags.h" |
| 48 #include "net/base/request_priority.h" | 48 #include "net/base/request_priority.h" |
| 49 #include "net/base/upload_bytes_element_reader.h" | 49 #include "net/base/upload_bytes_element_reader.h" |
| 50 #include "net/log/net_log_source_type.h" | 50 #include "net/log/net_log_source_type.h" |
| 51 #include "net/log/net_log_with_source.h" |
| 51 #include "net/url_request/url_request_context.h" | 52 #include "net/url_request/url_request_context.h" |
| 52 #include "storage/browser/blob/blob_url_request_job_factory.h" | 53 #include "storage/browser/blob/blob_url_request_job_factory.h" |
| 53 #include "url/origin.h" | 54 #include "url/origin.h" |
| 54 | 55 |
| 55 namespace content { | 56 namespace content { |
| 56 namespace { | 57 namespace { |
| 57 | 58 |
| 58 std::unique_ptr<UrlDownloader, BrowserThread::DeleteOnIOThread> BeginDownload( | 59 std::unique_ptr<UrlDownloader, BrowserThread::DeleteOnIOThread> BeginDownload( |
| 59 std::unique_ptr<DownloadUrlParameters> params, | 60 std::unique_ptr<DownloadUrlParameters> params, |
| 60 content::ResourceContext* resource_context, | 61 content::ResourceContext* resource_context, |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 if (delegate_) | 755 if (delegate_) |
| 755 delegate_->OpenDownload(download); | 756 delegate_->OpenDownload(download); |
| 756 } | 757 } |
| 757 | 758 |
| 758 void DownloadManagerImpl::ShowDownloadInShell(DownloadItemImpl* download) { | 759 void DownloadManagerImpl::ShowDownloadInShell(DownloadItemImpl* download) { |
| 759 if (delegate_) | 760 if (delegate_) |
| 760 delegate_->ShowDownloadInShell(download); | 761 delegate_->ShowDownloadInShell(download); |
| 761 } | 762 } |
| 762 | 763 |
| 763 } // namespace content | 764 } // namespace content |
| OLD | NEW |