/external/chromium_org/chrome/browser/download/ |
D | download_item_model.cc | 253 : download_(download) {} in DownloadItemModel() 258 if (download_->GetState() != DownloadItem::INTERRUPTED || in GetInterruptReasonText() 259 download_->GetLastReason() == in GetInterruptReasonText() 263 return InterruptReasonMessage(download_->GetLastReason()); in GetInterruptReasonText() 268 switch (download_->GetState()) { in GetStatusText() 273 if (download_->GetFileExternallyRemoved()) { in GetStatusText() 283 content::DownloadInterruptReason reason = download_->GetLastReason(); in GetStatusText() 303 int64 size = download_->GetReceivedBytes(); in GetTabProgressStatusText() 321 int64 current_speed = download_->CurrentSpeed(); in GetTabProgressStatusText() 327 if (download_->IsPaused()) in GetTabProgressStatusText() [all …]
|
D | download_target_determiner.cc | 83 download_(download), in DownloadTargetDeterminer() 84 is_resumption_(download_->GetLastReason() != in DownloadTargetDeterminer() 92 DCHECK(download_); in DownloadTargetDeterminer() 94 download_->AddObserver(this); in DownloadTargetDeterminer() 101 DCHECK(download_); in ~DownloadTargetDeterminer() 103 download_->RemoveObserver(this); in ~DownloadTargetDeterminer() 163 bool is_forced_path = !download_->GetForcedFilePath().empty(); in DoGenerateTargetPath() 181 download_->GetURL(), in DoGenerateTargetPath() 182 download_->GetContentDisposition(), in DoGenerateTargetPath() 184 download_->GetSuggestedFilename(), in DoGenerateTargetPath() [all …]
|
D | download_danger_prompt.cc | 55 content::DownloadItem* download_; member in __anonc4c742590111::DownloadDangerPromptImpl 68 download_(download), in DownloadDangerPromptImpl() 72 download_->AddObserver(this); in DownloadDangerPromptImpl() 73 RecordOpenedDangerousConfirmDialog(download_->GetDangerType()); in DownloadDangerPromptImpl() 107 switch (download_->GetDangerType()) { in GetTitle() 124 switch (download_->GetDangerType()) { in GetMessage() 128 download_->GetFileNameToReportUser().LossyDisplayName()); in GetMessage() 135 download_->GetFileNameToReportUser().LossyDisplayName()); in GetMessage() 140 download_->GetFileNameToReportUser().LossyDisplayName()); in GetMessage() 145 download_->GetFileNameToReportUser().LossyDisplayName()); in GetMessage() [all …]
|
D | download_danger_prompt_browsertest.cc | 60 testing::Mock::VerifyAndClearExpectations(&download_); in VerifyExpectations() 67 content::MockDownloadItem& download() { return download_; } in download() 77 EXPECT_CALL(download_, GetFileNameToReportUser()).WillRepeatedly(Return( in SetUpDownloadItemExpectations() 79 EXPECT_CALL(download_, AddObserver(_)) in SetUpDownloadItemExpectations() 81 EXPECT_CALL(download_, RemoveObserver(Eq(ByRef(download_observer_)))); in SetUpDownloadItemExpectations() 82 EXPECT_CALL(download_, GetDangerType()) in SetUpDownloadItemExpectations() 88 &download_, in CreatePrompt() 102 content::MockDownloadItem download_; member in DownloadDangerPromptTest
|
D | download_item_model.h | 141 content::DownloadItem* download() { return download_; } in download() 157 content::DownloadItem* download_; variable
|
D | download_target_determiner.h | 295 content::DownloadItem* download_; variable
|
/external/chromium/chrome/browser/download/ |
D | download_shelf.cc | 22 : download_(download_model->download()), in DownloadShelfContextMenu() 30 return download_; in download() 36 return download_->open_when_complete(); in IsCommandIdChecked() 38 return download_->ShouldOpenFileBasedOnExtension(); in IsCommandIdChecked() 40 return download_->is_paused(); in IsCommandIdChecked() 50 if (download_->IsInProgress()) in GetLabelForCommandId() 58 if (download_->is_paused()) in GetLabelForCommandId() 73 return !download_->IsCancelled(); in IsCommandIdEnabled() 75 return download_->CanOpenDownload(); in IsCommandIdEnabled() 77 return download_->IsPartialDownload(); in IsCommandIdEnabled() [all …]
|
D | download_item_model.cc | 27 download_->Cancel(true /* update history service */); in CancelTask() 31 int64 size = download_->received_bytes(); in GetStatusText() 32 int64 total = download_->total_bytes(); in GetStatusText() 47 if (download_->IsInProgress() && download_->is_paused()) { in GetStatusText() 49 } else if (download_->TimeRemaining(&remaining)) { in GetStatusText() 50 simple_time = download_->open_when_complete() ? in GetStatusText() 56 switch (download_->state()) { in GetStatusText() 58 if (download_->open_when_complete()) { in GetStatusText() 112 int64 size = download_->received_bytes(); in GetStatusText() 113 int64 total_size = download_->total_bytes(); in GetStatusText() [all …]
|
D | download_item_model.h | 22 : download_(download) { } in BaseDownloadItemModel() 31 DownloadItem* download() { return download_; } in download() 34 DownloadItem* download_;
|
D | save_package.cc | 162 download_(NULL), in SavePackage() 189 download_(NULL), in SavePackage() 213 download_(NULL), in SavePackage() 250 download_ = NULL; in ~SavePackage() 319 download_ = new DownloadItem(download_manager, in Init() 326 download_manager->SavePageAsDownloadStarted(download_); in Init() 328 tab_contents()->OnStartDownload(download_); in Init() 347 download_->set_total_bytes(1); in Init() 692 download_->Cancel(false); in Stop() 745 download_->OnAllDataSaved(all_save_items_count_); in Finish() [all …]
|
D | download_shelf.h | 68 DownloadItem* download_; variable
|
D | save_package.h | 276 DownloadItem* download_; variable
|
/external/chromium_org/chrome/browser/ui/views/download/ |
D | download_danger_prompt_views.cc | 80 content::DownloadItem* download_; member in __anond139d8d00111::DownloadDangerPromptViews 93 : download_(item), in DownloadDangerPromptViews() 99 download_->AddObserver(this); in DownloadDangerPromptViews() 135 RecordOpenedDangerousConfirmDialog(download_->GetDangerType()); in DownloadDangerPromptViews() 243 if (!download_->IsDangerous() || download_->IsDone()) { in OnDownloadUpdated() 252 switch (download_->GetDangerType()) { in GetAcceptButtonTitle() 266 switch (download_->GetDangerType()) { in GetCancelButtonTitle() 279 switch (download_->GetDangerType()) { in GetMessageLead() 296 switch (download_->GetDangerType()) { in GetMessageBody() 300 download_->GetFileNameToReportUser().LossyDisplayName()); in GetMessageBody() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/image_writer_private/ |
D | write_from_url_operation.cc | 37 download_(NULL) { in WriteFromUrlOperation() 125 download_ = item; in OnDownloadStarted() 126 download_->AddObserver(this); in OnDownloadStarted() 129 OnDownloadUpdated(download_); in OnDownloadStarted() 150 download_path_ = download_->GetTargetFilePath(); in OnDownloadUpdated() 152 download_->RemoveObserver(this); in OnDownloadUpdated() 153 download_ = NULL; in OnDownloadUpdated() 187 if (download_) { in DownloadCleanUp() 188 download_->RemoveObserver(this); in DownloadCleanUp() 189 download_->Cancel(true); in DownloadCleanUp() [all …]
|
D | write_from_url_operation.h | 61 content::DownloadItem* download_; variable
|
/external/chromium/chrome/browser/ui/views/download/ |
D | download_item_view.cc | 92 if (download_->IsComplete()) in Run() 109 download_ = NULL; in Stop() 122 download_(download), in DownloadItemView() 142 DCHECK(download_); in DownloadItemView() 143 download_->AddObserver(this); in DownloadItemView() 222 UTF16ToWide(download_->GetFileNameToReportUser().LossyDisplayName()); in DownloadItemView() 339 download_->RemoveObserver(this); in ~DownloadItemView() 376 DCHECK(download == download_); in OnDownloadUpdated() 385 switch (download_->state()) { in OnDownloadUpdated() 387 download_->is_paused() ? StopDownloadProgress() : StartDownloadProgress(); in OnDownloadUpdated() [all …]
|
D | download_item_view.h | 73 DownloadItem* download() const { return download_; } in download() 193 DownloadItem* download_; variable
|
/external/chromium_org/content/browser/download/ |
D | save_package.cc | 149 download_(NULL), in SavePackage() 182 download_(NULL), in SavePackage() 211 download_(NULL), in SavePackage() 237 CHECK(!download_); in ~SavePackage() 333 download_ = item; in InitWithDownloadItem() 334 download_->AddObserver(this); in InitWithDownloadItem() 337 download_created_callback.Run(download_); in InitWithDownloadItem() 360 download_->SetTotalBytes(1); in InitWithDownloadItem() 376 if (download_->GetState() == DownloadItem::IN_PROGRESS) { in OnMHTMLGenerated() 377 download_->SetTotalBytes(size); in OnMHTMLGenerated() [all …]
|
D | download_browsertest.cc | 390 : download_(download) { in RecordingDownloadObserver() 393 download_->AddObserver(this); in RecordingDownloadObserver() 412 DCHECK_EQ(download_, download); in OnDownloadUpdated() 423 DCHECK_EQ(download_, download); in OnDownloadDestroyed() 428 if (download_) { in RemoveObserver() 429 download_->RemoveObserver(this); in RemoveObserver() 430 download_ = NULL; in RemoveObserver() 434 DownloadItem* download_; member in content::__anon03e727480111::RecordingDownloadObserver
|
D | save_package.h | 274 DownloadItemImpl* download_; variable
|
/external/chromium_org/chrome/browser/favicon/ |
D | favicon_handler_unittest.cc | 88 download_.reset(NULL); in Reset() 97 download_.reset(new Download( in AddDownload() 105 bool HasDownload() const { return download_.get() != NULL; } in HasDownload() 106 const GURL& GetImageUrl() const { return download_->image_url; } in GetImageUrl() 107 void SetImageSize(int size) { download_->image_size = size; } in SetImageSize() 124 scoped_ptr<Download> download_; member in __anon54f737a00111::DownloadHandler 343 int original_size = (download_->image_size > 0) ? in InvokeCallback() 344 download_->image_size : gfx::kFaviconSize; in InvokeCallback() 346 if (download_->max_image_size != 0 && in InvokeCallback() 347 downloaded_size > download_->max_image_size) { in InvokeCallback() [all …]
|
/external/chromium_org/chrome/browser/ui/cocoa/download/ |
D | download_shelf_controller_unittest.mm | 27 scoped_ptr<content::MockDownloadItem> download_; field 37 download_ = download.Pass(); 43 return download_.get(); 47 return download_.get();
|
/external/chromium/chrome/browser/ui/gtk/download/ |
D | download_item_gtk.cc | 103 if (download_->IsComplete()) in Popup()
|