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

Unified Diff: chrome/browser/download/download_status_updater.h

Issue 10827207: Mountain Lion: use the system download progress. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_status_updater.h
diff --git a/chrome/browser/download/download_status_updater.h b/chrome/browser/download/download_status_updater.h
index 162ec1beb5c114cf5a7c325c7c5c5b1cdcbd3dc2..8b606b08995a7b6302d377876a59822e9986da2c 100644
--- a/chrome/browser/download/download_status_updater.h
+++ b/chrome/browser/download/download_status_updater.h
@@ -48,6 +48,15 @@ class DownloadStatusUpdater
// Update the internal state tracking an item.
void UpdateItem(content::DownloadItem* download);
+ // Updates the platform-specific progress for individual items. Virtual to be
+ // overridable for testing.
+ virtual void UpdateDownloadProgressForItemStarted(
+ content::DownloadItem* download);
+ virtual void UpdateDownloadProgressForItemProgressed(
+ content::DownloadItem* download);
+ virtual void UpdateDownloadProgressForItemCompleted(
+ content::DownloadItem* download);
+
std::set<content::DownloadManager*> managers_;
std::set<content::DownloadItem*> items_;

Powered by Google App Engine
This is Rietveld 408576698