Home
last modified time | relevance | path

Searched refs:download_ (Results 1 – 23 of 23) sorted by relevance

/external/chromium_org/chrome/browser/download/
Ddownload_item_model.cc253 : 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 …]
Ddownload_target_determiner.cc83 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 …]
Ddownload_danger_prompt.cc55 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 …]
Ddownload_danger_prompt_browsertest.cc60 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
Ddownload_item_model.h141 content::DownloadItem* download() { return download_; } in download()
157 content::DownloadItem* download_; variable
Ddownload_target_determiner.h295 content::DownloadItem* download_; variable
/external/chromium/chrome/browser/download/
Ddownload_shelf.cc22 : 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 …]
Ddownload_item_model.cc27 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 …]
Ddownload_item_model.h22 : download_(download) { } in BaseDownloadItemModel()
31 DownloadItem* download() { return download_; } in download()
34 DownloadItem* download_;
Dsave_package.cc162 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 …]
Ddownload_shelf.h68 DownloadItem* download_; variable
Dsave_package.h276 DownloadItem* download_; variable
/external/chromium_org/chrome/browser/ui/views/download/
Ddownload_danger_prompt_views.cc80 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/
Dwrite_from_url_operation.cc37 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 …]
Dwrite_from_url_operation.h61 content::DownloadItem* download_; variable
/external/chromium/chrome/browser/ui/views/download/
Ddownload_item_view.cc92 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 …]
Ddownload_item_view.h73 DownloadItem* download() const { return download_; } in download()
193 DownloadItem* download_; variable
/external/chromium_org/content/browser/download/
Dsave_package.cc149 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 …]
Ddownload_browsertest.cc390 : 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
Dsave_package.h274 DownloadItemImpl* download_; variable
/external/chromium_org/chrome/browser/favicon/
Dfavicon_handler_unittest.cc88 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/
Ddownload_shelf_controller_unittest.mm27 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/
Ddownload_item_gtk.cc103 if (download_->IsComplete()) in Popup()