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 ~DownloadItemFactory() {} | 40 virtual ~DownloadItemFactory() {} |
41 | 41 |
42 virtual DownloadItemImpl* CreatePersistedItem( | 42 virtual DownloadItemImpl* CreatePersistedItem( |
43 DownloadItemImplDelegate* delegate, | 43 DownloadItemImplDelegate* delegate, |
44 const std::string& guid, | 44 const std::string& guid, |
45 uint32_t download_id, | 45 uint32_t download_id, |
46 const base::FilePath& current_path, | 46 const base::FilePath& current_path, |
47 const base::FilePath& target_path, | 47 const base::FilePath& target_path, |
48 const std::vector<GURL>& url_chain, | 48 const std::vector<GURL>& url_chain, |
49 const GURL& referrer_url, | 49 const GURL& referrer_url, |
| 50 const GURL& site_instance_url, |
50 const GURL& tab_url, | 51 const GURL& tab_url, |
51 const GURL& tab_refererr_url, | 52 const GURL& tab_refererr_url, |
52 const std::string& mime_type, | 53 const std::string& mime_type, |
53 const std::string& original_mime_type, | 54 const std::string& original_mime_type, |
54 const base::Time& start_time, | 55 const base::Time& start_time, |
55 const base::Time& end_time, | 56 const base::Time& end_time, |
56 const std::string& etag, | 57 const std::string& etag, |
57 const std::string& last_modified, | 58 const std::string& last_modified, |
58 int64_t received_bytes, | 59 int64_t received_bytes, |
59 int64_t total_bytes, | 60 int64_t total_bytes, |
(...skipping 16 matching lines...) Expand all Loading... |
76 const base::FilePath& path, | 77 const base::FilePath& path, |
77 const GURL& url, | 78 const GURL& url, |
78 const std::string& mime_type, | 79 const std::string& mime_type, |
79 std::unique_ptr<DownloadRequestHandleInterface> request_handle, | 80 std::unique_ptr<DownloadRequestHandleInterface> request_handle, |
80 const net::BoundNetLog& bound_net_log) = 0; | 81 const net::BoundNetLog& bound_net_log) = 0; |
81 }; | 82 }; |
82 | 83 |
83 } // namespace content | 84 } // namespace content |
84 | 85 |
85 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ | 86 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ |
OLD | NEW |