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

Side by Side 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: fix 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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 30 matching lines...) Expand all
41 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE; 41 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE;
42 42
43 protected: 43 protected:
44 // Update the app icon. Virtual to be overridable for testing. 44 // Update the app icon. Virtual to be overridable for testing.
45 virtual void UpdateAppIconDownloadProgress(); 45 virtual void UpdateAppIconDownloadProgress();
46 46
47 private: 47 private:
48 // Update the internal state tracking an item. 48 // Update the internal state tracking an item.
49 void UpdateItem(content::DownloadItem* download); 49 void UpdateItem(content::DownloadItem* download);
50 50
51 // Updates the platform-specific progress for individual items. Virtual to be
52 // overridable for testing.
53 virtual void UpdateDownloadProgressForItemStarted(
54 content::DownloadItem* download);
55 virtual void UpdateDownloadProgressForItemProgressed(
56 content::DownloadItem* download);
57 virtual void UpdateDownloadProgressForItemCompleted(
58 content::DownloadItem* download);
59
51 std::set<content::DownloadManager*> managers_; 60 std::set<content::DownloadManager*> managers_;
52 std::set<content::DownloadItem*> items_; 61 std::set<content::DownloadItem*> items_;
53 62
54 DISALLOW_COPY_AND_ASSIGN(DownloadStatusUpdater); 63 DISALLOW_COPY_AND_ASSIGN(DownloadStatusUpdater);
55 }; 64 };
56 65
57 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ 66 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698