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 // 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 Loading... |
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_ |
OLD | NEW |