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

Side by Side Diff: chrome/browser/download/download_status_updater.h

Issue 9361046: Revert 121031 - Eliminate DownloadProgressUpdated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 25 matching lines...) Expand all
36 virtual void ModelChanged(content::DownloadManager* manager) OVERRIDE; 36 virtual void ModelChanged(content::DownloadManager* manager) OVERRIDE;
37 virtual void ManagerGoingDown(content::DownloadManager* manager) OVERRIDE; 37 virtual void ManagerGoingDown(content::DownloadManager* manager) OVERRIDE;
38 virtual void SelectFileDialogDisplayed( 38 virtual void SelectFileDialogDisplayed(
39 content::DownloadManager* manager, int32 id) OVERRIDE; 39 content::DownloadManager* manager, int32 id) OVERRIDE;
40 40
41 // Methods inherited from content::DownloadItem::Observer. 41 // Methods inherited from content::DownloadItem::Observer.
42 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; 42 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE;
43 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE; 43 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE;
44 44
45 private: 45 private:
46 // Update the app icon.
47 void UpdateAppIconDownloadProgress();
48
49 // Update the internal state tracking an item. 46 // Update the internal state tracking an item.
50 void UpdateItem(content::DownloadItem* download); 47 void UpdateItem(content::DownloadItem* download);
51 48
52 std::set<content::DownloadManager*> managers_; 49 std::set<content::DownloadManager*> managers_;
53 std::set<content::DownloadItem*> items_; 50 std::set<content::DownloadItem*> items_;
54 51
55 DISALLOW_COPY_AND_ASSIGN(DownloadStatusUpdater); 52 DISALLOW_COPY_AND_ASSIGN(DownloadStatusUpdater);
56 }; 53 };
57 54
58 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_ 55 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_STATUS_UPDATER_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | chrome/browser/download/download_status_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698