Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: content/browser/download/download_manager_impl.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698