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

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

Issue 230103002: [Downloads] Ask DownloadHistory if a download was from history. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build Created 6 years, 7 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 041981388f312cf4ddf69ca6f9fe0f32960573dd..367e9ef677d515ff83640d87146a4d508e1c58b0 100644
--- a/chrome/browser/download/download_item_model.h
+++ b/chrome/browser/download/download_item_model.h
@@ -117,14 +117,18 @@ class DownloadItemModel {
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.
+ // be presented in the UI. 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);
+ // Returns |true| if the UI has been notified about this download. By default,
+ // this value is |false| and should be changed explicitly using
+ // SetWasUINotified().
+ bool WasUINotified() const;
+
+ // Change what's returned by WasUINotified().
+ void SetWasUINotified(bool should_notify);
// Returns |true| if opening in the browser is preferred for this download. If
// |false|, the download should be opened with the system default application.
« no previous file with comments | « chrome/browser/download/download_history_unittest.cc ('k') | chrome/browser/download/download_item_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698