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

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

Issue 2705283003: Added last_access_time to DownloadItem and History DB (Closed)
Patch Set: rebase origin/master Created 3 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_url, 50 const GURL& site_url,
51 const GURL& tab_url, 51 const GURL& tab_url,
52 const GURL& tab_refererr_url, 52 const GURL& tab_refererr_url,
53 const std::string& mime_type, 53 const std::string& mime_type,
54 const std::string& original_mime_type, 54 const std::string& original_mime_type,
55 const base::Time& start_time, 55 base::Time start_time,
56 const base::Time& end_time, 56 base::Time end_time,
57 const std::string& etag, 57 const std::string& etag,
58 const std::string& last_modified, 58 const std::string& last_modified,
59 int64_t received_bytes, 59 int64_t received_bytes,
60 int64_t total_bytes, 60 int64_t total_bytes,
61 const std::string& hash, 61 const std::string& hash,
62 DownloadItem::DownloadState state, 62 DownloadItem::DownloadState state,
63 DownloadDangerType danger_type, 63 DownloadDangerType danger_type,
64 DownloadInterruptReason interrupt_reason, 64 DownloadInterruptReason interrupt_reason,
65 bool opened, 65 bool opened,
66 base::Time last_access_time,
66 const std::vector<DownloadItem::ReceivedSlice>& received_slices, 67 const std::vector<DownloadItem::ReceivedSlice>& received_slices,
67 const net::NetLogWithSource& net_log) = 0; 68 const net::NetLogWithSource& net_log) = 0;
68 69
69 virtual DownloadItemImpl* CreateActiveItem( 70 virtual DownloadItemImpl* CreateActiveItem(
70 DownloadItemImplDelegate* delegate, 71 DownloadItemImplDelegate* delegate,
71 uint32_t download_id, 72 uint32_t download_id,
72 const DownloadCreateInfo& info, 73 const DownloadCreateInfo& info,
73 const net::NetLogWithSource& net_log) = 0; 74 const net::NetLogWithSource& net_log) = 0;
74 75
75 virtual DownloadItemImpl* CreateSavePageItem( 76 virtual DownloadItemImpl* CreateSavePageItem(
76 DownloadItemImplDelegate* delegate, 77 DownloadItemImplDelegate* delegate,
77 uint32_t download_id, 78 uint32_t download_id,
78 const base::FilePath& path, 79 const base::FilePath& path,
79 const GURL& url, 80 const GURL& url,
80 const std::string& mime_type, 81 const std::string& mime_type,
81 std::unique_ptr<DownloadRequestHandleInterface> request_handle, 82 std::unique_ptr<DownloadRequestHandleInterface> request_handle,
82 const net::NetLogWithSource& net_log) = 0; 83 const net::NetLogWithSource& net_log) = 0;
83 }; 84 };
84 85
85 } // namespace content 86 } // namespace content
86 87
87 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_ 88 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698