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

Side by Side Diff: content/public/browser/download_manager.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
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 DownloadManager object manages the process of downloading, including 5 // The DownloadManager object manages the process of downloading, including
6 // updates to the history system and providing the information for displaying 6 // updates to the history system and providing the information for displaying
7 // the downloads view in the Destinations tab. There is one DownloadManager per 7 // the downloads view in the Destinations tab. There is one DownloadManager per
8 // active browser context in Chrome. 8 // active browser context in Chrome.
9 // 9 //
10 // Download observers: 10 // Download observers:
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 uint32_t id, 133 uint32_t id,
134 const base::FilePath& current_path, 134 const base::FilePath& current_path,
135 const base::FilePath& target_path, 135 const base::FilePath& target_path,
136 const std::vector<GURL>& url_chain, 136 const std::vector<GURL>& url_chain,
137 const GURL& referrer_url, 137 const GURL& referrer_url,
138 const GURL& site_url, 138 const GURL& site_url,
139 const GURL& tab_url, 139 const GURL& tab_url,
140 const GURL& tab_referrer_url, 140 const GURL& tab_referrer_url,
141 const std::string& mime_type, 141 const std::string& mime_type,
142 const std::string& original_mime_type, 142 const std::string& original_mime_type,
143 const base::Time& start_time, 143 base::Time start_time,
144 const base::Time& end_time, 144 base::Time end_time,
145 const std::string& etag, 145 const std::string& etag,
146 const std::string& last_modified, 146 const std::string& last_modified,
147 int64_t received_bytes, 147 int64_t received_bytes,
148 int64_t total_bytes, 148 int64_t total_bytes,
149 const std::string& hash, 149 const std::string& hash,
150 DownloadItem::DownloadState state, 150 DownloadItem::DownloadState state,
151 DownloadDangerType danger_type, 151 DownloadDangerType danger_type,
152 DownloadInterruptReason interrupt_reason, 152 DownloadInterruptReason interrupt_reason,
153 bool opened, 153 bool opened,
154 base::Time last_access_time,
154 const std::vector<DownloadItem::ReceivedSlice>& received_slices) = 0; 155 const std::vector<DownloadItem::ReceivedSlice>& received_slices) = 0;
155 156
156 // The number of in progress (including paused) downloads. 157 // The number of in progress (including paused) downloads.
157 // Performance note: this loops over all items. If profiling finds that this 158 // Performance note: this loops over all items. If profiling finds that this
158 // is too slow, use an AllDownloadItemNotifier to count in-progress items. 159 // is too slow, use an AllDownloadItemNotifier to count in-progress items.
159 virtual int InProgressCount() const = 0; 160 virtual int InProgressCount() const = 0;
160 161
161 // The number of in progress (including paused) downloads. 162 // The number of in progress (including paused) downloads.
162 // Performance note: this loops over all items. If profiling finds that this 163 // Performance note: this loops over all items. If profiling finds that this
163 // is too slow, use an AllDownloadItemNotifier to count in-progress items. 164 // is too slow, use an AllDownloadItemNotifier to count in-progress items.
(...skipping 14 matching lines...) Expand all
178 // if you need to keep track of a specific download. (http://crbug.com/593020) 179 // if you need to keep track of a specific download. (http://crbug.com/593020)
179 virtual DownloadItem* GetDownload(uint32_t id) = 0; 180 virtual DownloadItem* GetDownload(uint32_t id) = 0;
180 181
181 // Get the download item for |guid|. 182 // Get the download item for |guid|.
182 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; 183 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0;
183 }; 184 };
184 185
185 } // namespace content 186 } // namespace content
186 187
187 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 188 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698