Lines Matching refs:download_

95       download_(download),
96 is_resumption_(download_->GetLastReason() !=
104 DCHECK(download_);
106 download_->AddObserver(this);
113 DCHECK(download_);
115 download_->RemoveObserver(this);
178 bool is_forced_path = !download_->GetForcedFilePath().empty();
196 download_->GetURL(),
197 download_->GetContentDisposition(),
199 download_->GetSuggestedFilename(),
200 download_->GetMimeType(),
216 virtual_path_ = download_->GetForcedFilePath();
232 if (download_->GetState() != DownloadItem::IN_PROGRESS)
247 delegate_->NotifyExtensions(download_, virtual_path_,
294 download_, virtual_path_, create_target_directory_, conflict_action_,
321 download_,
354 download_,
557 download_,
597 if (history_service && download_->GetReferrerUrl().is_valid()) {
599 download_->GetReferrerUrl(),
660 // download_->GetForcedFilePath().
662 !download_->GetForcedFilePath().empty()) {
663 DCHECK_EQ(download_->GetForcedFilePath().value(), local_path_.value());
678 if (is_resumption_ && !download_->GetFullPath().empty() &&
679 local_path_.DirName() == download_->GetFullPath().DirName()) {
681 download_->GetDangerType());
682 DCHECK_EQ(kCrdownloadSuffix, download_->GetFullPath().Extension());
683 intermediate_path_ = download_->GetFullPath();
710 DCHECK(download_);
745 DCHECK(download_->GetBrowserContext());
746 return Profile::FromBrowserContext(download_->GetBrowserContext());
756 content::DownloadInterruptReason reason = download_->GetLastReason();
763 if (!download_->GetForcedFilePath().empty()) {
766 download_->GetTargetDisposition());
777 if (download_->GetTargetDisposition() ==
788 !download_crx_util::IsExtensionDownload(*download_) &&
802 return (is_resumption_ && download_->GetTargetDisposition() ==
813 !download_->GetForcedFilePath().empty())
817 download_crx_util::IsExtensionDownload(*download_);
821 if (download_->HasUserGesture() &&
824 GetProfile(), *download_)) {
834 !extensions::WebstoreInstaller::GetAssociatedApproval(*download_)) {
841 download_->HasUserGesture())
851 if (download_->GetTransitionType() &
855 return !download_->HasUserGesture() || visits == NO_VISITS_TO_REFERRER;
867 DCHECK_EQ(download_, download);