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

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

Issue 11640007: Make the UI an observer of downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android clang build Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/download_item_model.cc ('k') | chrome/browser/download/download_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_service.h
diff --git a/chrome/browser/download/download_service.h b/chrome/browser/download/download_service.h
index 601b3edcafb9b4a13d8352fae29a45aeeb273f39..742d576a976158cf19c3891bbc0ca0e8286fea16 100644
--- a/chrome/browser/download/download_service.h
+++ b/chrome/browser/download/download_service.h
@@ -15,6 +15,7 @@
class ChromeDownloadManagerDelegate;
class DownloadHistory;
+class DownloadUIController;
class ExtensionDownloadsEventRouter;
class Profile;
@@ -72,6 +73,11 @@ class DownloadService : public ProfileKeyedService {
scoped_ptr<DownloadHistory> download_history_;
+ // The UI controller is responsible for observing the download manager and
+ // notifying the UI of any new downloads. Its lifetime matches that of the
+ // associated download manager.
+ scoped_ptr<DownloadUIController> download_ui_;
+
// On Android, GET downloads are not handled by the DownloadManager.
// Once we have extensions on android, we probably need the EventRouter
// in ContentViewDownloadDelegate which knows about both GET and POST
« no previous file with comments | « chrome/browser/download/download_item_model.cc ('k') | chrome/browser/download/download_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698