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

Unified Diff: content/browser/download/download_item_impl.cc

Issue 10980002: Mac Web Intents Part 1: Show extension download progress (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 2 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: content/browser/download/download_item_impl.cc
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index 72159e425e25f81b1872f58c51a5d71f36eea475..127d707cb62ad61788808d150da41f031e7c295d 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -160,6 +160,7 @@ DownloadItemImpl::DownloadItemImpl(DownloadItemImplDelegate* delegate,
open_enabled_(true),
delegate_delayed_complete_(false),
bound_net_log_(bound_net_log),
+ should_show_in_downloads_ui_(true),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
delegate_->Attach();
if (state_ == IN_PROGRESS_INTERNAL)
@@ -709,6 +710,14 @@ WebContents* DownloadItemImpl::GetWebContents() const {
return NULL;
}
+void DownloadItemImpl::SetShouldShowInDownloadsUI(bool should_show) {
+ should_show_in_downloads_ui_ = should_show;
+}
+
+bool DownloadItemImpl::ShouldShowInDownloadsUI() const {
+ return should_show_in_downloads_ui_;
+}
+
void DownloadItemImpl::OnContentCheckCompleted(
content::DownloadDangerType danger_type) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));

Powered by Google App Engine
This is Rietveld 408576698