| 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..ca9de3d20e3ffd7ad1094567b20c99a8b099b378 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),
|
| + is_hidden_download_(false),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
|
| delegate_->Attach();
|
| if (state_ == IN_PROGRESS_INTERNAL)
|
| @@ -214,6 +215,7 @@ DownloadItemImpl::DownloadItemImpl(
|
| open_enabled_(true),
|
| delegate_delayed_complete_(false),
|
| bound_net_log_(bound_net_log),
|
| + is_hidden_download_(false),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
|
| delegate_->Attach();
|
| Init(true /* actively downloading */,
|
| @@ -269,6 +271,7 @@ DownloadItemImpl::DownloadItemImpl(DownloadItemImplDelegate* delegate,
|
| open_enabled_(true),
|
| delegate_delayed_complete_(false),
|
| bound_net_log_(bound_net_log),
|
| + is_hidden_download_(false),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
|
| delegate_->Attach();
|
| Init(true /* actively downloading */,
|
| @@ -709,6 +712,14 @@ WebContents* DownloadItemImpl::GetWebContents() const {
|
| return NULL;
|
| }
|
|
|
| +void DownloadItemImpl::SetIsHiddenDownload(bool is_hidden) {
|
| + is_hidden_download_ = is_hidden;
|
| +}
|
| +
|
| +bool DownloadItemImpl::IsHiddenDownload() const {
|
| + return is_hidden_download_;
|
| +}
|
| +
|
| void DownloadItemImpl::OnContentCheckCompleted(
|
| content::DownloadDangerType danger_type) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
|
|