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

Side by Side Diff: content/browser/download/download_item_factory.h

Issue 11640007: Make the UI an observer of downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android clang build Created 7 years, 9 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 | Annotate | Revision Log
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 // The DownloadItemFactory is used to produce different DownloadItems. 5 // The DownloadItemFactory is used to produce different DownloadItems.
6 // It is separate from the DownloadManager to allow download manager 6 // It is separate from the DownloadManager to allow download manager
7 // unit tests to control the items produced. 7 // unit tests to control the items produced.
8 8
9 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ 9 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_
10 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ 10 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 DownloadItemImplDelegate* delegate, 59 DownloadItemImplDelegate* delegate,
60 const DownloadCreateInfo& info, 60 const DownloadCreateInfo& info,
61 const net::BoundNetLog& bound_net_log) = 0; 61 const net::BoundNetLog& bound_net_log) = 0;
62 62
63 virtual DownloadItemImpl* CreateSavePageItem( 63 virtual DownloadItemImpl* CreateSavePageItem(
64 DownloadItemImplDelegate* delegate, 64 DownloadItemImplDelegate* delegate,
65 const base::FilePath& path, 65 const base::FilePath& path,
66 const GURL& url, 66 const GURL& url,
67 DownloadId download_id, 67 DownloadId download_id,
68 const std::string& mime_type, 68 const std::string& mime_type,
69 scoped_ptr<DownloadRequestHandleInterface> request_handle,
69 const net::BoundNetLog& bound_net_log) = 0; 70 const net::BoundNetLog& bound_net_log) = 0;
70 }; 71 };
71 72
72 } // namespace content 73 } // namespace content
73 74
74 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ 75 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/android/download_controller_android_impl.cc ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698