| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "content/public/browser/notification_types.h" | 42 #include "content/public/browser/notification_types.h" |
| 43 #include "content/public/browser/render_process_host.h" | 43 #include "content/public/browser/render_process_host.h" |
| 44 #include "content/public/browser/resource_context.h" | 44 #include "content/public/browser/resource_context.h" |
| 45 #include "content/public/browser/web_contents_delegate.h" | 45 #include "content/public/browser/web_contents_delegate.h" |
| 46 #include "content/public/common/referrer.h" | 46 #include "content/public/common/referrer.h" |
| 47 #include "net/base/elements_upload_data_stream.h" | 47 #include "net/base/elements_upload_data_stream.h" |
| 48 #include "net/base/load_flags.h" | 48 #include "net/base/load_flags.h" |
| 49 #include "net/base/request_priority.h" | 49 #include "net/base/request_priority.h" |
| 50 #include "net/base/upload_bytes_element_reader.h" | 50 #include "net/base/upload_bytes_element_reader.h" |
| 51 #include "net/log/net_log_source_type.h" | 51 #include "net/log/net_log_source_type.h" |
| 52 #include "net/log/net_log_with_source.h" |
| 52 #include "net/url_request/url_request_context.h" | 53 #include "net/url_request/url_request_context.h" |
| 53 #include "storage/browser/blob/blob_url_request_job_factory.h" | 54 #include "storage/browser/blob/blob_url_request_job_factory.h" |
| 54 #include "url/origin.h" | 55 #include "url/origin.h" |
| 55 | 56 |
| 56 namespace content { | 57 namespace content { |
| 57 namespace { | 58 namespace { |
| 58 | 59 |
| 59 std::unique_ptr<UrlDownloader, BrowserThread::DeleteOnIOThread> BeginDownload( | 60 std::unique_ptr<UrlDownloader, BrowserThread::DeleteOnIOThread> BeginDownload( |
| 60 std::unique_ptr<DownloadUrlParameters> params, | 61 std::unique_ptr<DownloadUrlParameters> params, |
| 61 content::ResourceContext* resource_context, | 62 content::ResourceContext* resource_context, |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 if (delegate_) | 764 if (delegate_) |
| 764 delegate_->OpenDownload(download); | 765 delegate_->OpenDownload(download); |
| 765 } | 766 } |
| 766 | 767 |
| 767 void DownloadManagerImpl::ShowDownloadInShell(DownloadItemImpl* download) { | 768 void DownloadManagerImpl::ShowDownloadInShell(DownloadItemImpl* download) { |
| 768 if (delegate_) | 769 if (delegate_) |
| 769 delegate_->ShowDownloadInShell(download); | 770 delegate_->ShowDownloadInShell(download); |
| 770 } | 771 } |
| 771 | 772 |
| 772 } // namespace content | 773 } // namespace content |
| OLD | NEW |