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

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: added test 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..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));

Powered by Google App Engine
This is Rietveld 408576698