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

Unified Diff: chrome/browser/download/download_item_model.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
Index: chrome/browser/download/download_item_model.h
diff --git a/chrome/browser/download/download_item_model.h b/chrome/browser/download/download_item_model.h
index 7b65fe52a8069910ccc973cdb5f1df7858fbf75a..d328470a6265b7cb35a80aec8f96e1ed1052c307 100644
--- a/chrome/browser/download/download_item_model.h
+++ b/chrome/browser/download/download_item_model.h
@@ -105,6 +105,16 @@ class DownloadItemModel {
// displayed in the shelf.
void SetShouldShowInShelf(bool should_show);
+ // Returns |true| if the UI should be notified when the download is ready to
+ // be presented in the UI. By default, this value is |false| and should be
+ // changed explicitly using SetShouldNotifyUI(). Note that this is indpendent
+ // of ShouldShowInShelf() since there might be actions other than showing in
+ // the shelf that the UI must perform.
+ bool ShouldNotifyUI() const;
+
+ // Change what's returned by ShouldNotifyUI().
+ void SetShouldNotifyUI(bool should_notify);
+
content::DownloadItem* download() { return download_; }
private:
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | chrome/browser/download/download_item_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698