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 29 matching lines...) Expand all Loading... |
40 virtual DownloadItemImpl* CreatePersistedItem( | 40 virtual DownloadItemImpl* CreatePersistedItem( |
41 DownloadItemImplDelegate* delegate, | 41 DownloadItemImplDelegate* delegate, |
42 content::DownloadId download_id, | 42 content::DownloadId download_id, |
43 const content::DownloadPersistentStoreInfo& info, | 43 const content::DownloadPersistentStoreInfo& info, |
44 const net::BoundNetLog& bound_net_log) = 0; | 44 const net::BoundNetLog& bound_net_log) = 0; |
45 | 45 |
46 virtual DownloadItemImpl* CreateActiveItem( | 46 virtual DownloadItemImpl* CreateActiveItem( |
47 DownloadItemImplDelegate* delegate, | 47 DownloadItemImplDelegate* delegate, |
48 const DownloadCreateInfo& info, | 48 const DownloadCreateInfo& info, |
49 scoped_ptr<DownloadRequestHandleInterface> request_handle, | 49 scoped_ptr<DownloadRequestHandleInterface> request_handle, |
50 bool is_otr, | |
51 const net::BoundNetLog& bound_net_log) = 0; | 50 const net::BoundNetLog& bound_net_log) = 0; |
52 | 51 |
53 virtual DownloadItemImpl* CreateSavePageItem( | 52 virtual DownloadItemImpl* CreateSavePageItem( |
54 DownloadItemImplDelegate* delegate, | 53 DownloadItemImplDelegate* delegate, |
55 const FilePath& path, | 54 const FilePath& path, |
56 const GURL& url, | 55 const GURL& url, |
57 bool is_otr, | |
58 content::DownloadId download_id, | 56 content::DownloadId download_id, |
59 const std::string& mime_type, | 57 const std::string& mime_type, |
60 const net::BoundNetLog& bound_net_log) = 0; | 58 const net::BoundNetLog& bound_net_log) = 0; |
61 }; | 59 }; |
62 | 60 |
63 } // namespace content | 61 } // namespace content |
64 | 62 |
65 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ | 63 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ |
OLD | NEW |