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

Side by Side Diff: content/public/browser/download_manager.h

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)
Patch Set: fix tests Created 3 years, 8 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/fake_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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 base::Time last_access_time,
155 bool transient,
155 const std::vector<DownloadItem::ReceivedSlice>& received_slices) = 0; 156 const std::vector<DownloadItem::ReceivedSlice>& received_slices) = 0;
156 157
157 // The number of in progress (including paused) downloads. 158 // The number of in progress (including paused) downloads.
158 // Performance note: this loops over all items. If profiling finds that this 159 // Performance note: this loops over all items. If profiling finds that this
159 // is too slow, use an AllDownloadItemNotifier to count in-progress items. 160 // is too slow, use an AllDownloadItemNotifier to count in-progress items.
160 virtual int InProgressCount() const = 0; 161 virtual int InProgressCount() const = 0;
161 162
162 // The number of in progress (including paused) downloads. 163 // The number of in progress (including paused) downloads.
163 // Performance note: this loops over all items. If profiling finds that this 164 // Performance note: this loops over all items. If profiling finds that this
164 // is too slow, use an AllDownloadItemNotifier to count in-progress items. 165 // is too slow, use an AllDownloadItemNotifier to count in-progress items.
(...skipping 14 matching lines...) Expand all
179 // if you need to keep track of a specific download. (http://crbug.com/593020) 180 // if you need to keep track of a specific download. (http://crbug.com/593020)
180 virtual DownloadItem* GetDownload(uint32_t id) = 0; 181 virtual DownloadItem* GetDownload(uint32_t id) = 0;
181 182
182 // Get the download item for |guid|. 183 // Get the download item for |guid|.
183 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; 184 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0;
184 }; 185 };
185 186
186 } // namespace content 187 } // namespace content
187 188
188 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 189 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/test/fake_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698