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

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

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)
Patch Set: fix tests Created 3 years, 9 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 e7c9873321b9fceb39f80a044536c0700210f782..2a7dcc9ca1a460e22daf92071bd8feea19ab3c92 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -149,6 +149,7 @@ DownloadItemImpl::DownloadItemImpl(
DownloadInterruptReason interrupt_reason,
bool opened,
base::Time last_access_time,
+ bool visible,
const std::vector<DownloadItem::ReceivedSlice>& received_slices,
const net::NetLogWithSource& net_log)
: guid_(base::ToUpperASCII(guid)),
@@ -171,6 +172,7 @@ DownloadItemImpl::DownloadItemImpl(
delegate_(delegate),
opened_(opened),
last_access_time_(last_access_time),
+ visible_(visible),
current_path_(current_path),
received_bytes_(received_bytes),
all_data_saved_(state == COMPLETE),
@@ -781,6 +783,10 @@ base::Time DownloadItemImpl::GetLastAccessTime() const {
return last_access_time_;
}
+bool DownloadItemImpl::IsVisible() const {
+ return visible_;
+}
+
BrowserContext* DownloadItemImpl::GetBrowserContext() const {
return delegate_->GetBrowserContext();
}

Powered by Google App Engine
This is Rietveld 408576698