Lines Matching defs:download

5 #include "chrome/browser/download/download_file_manager.h"
13 #include "chrome/browser/download/download_manager.h"
14 #include "chrome/browser/download/download_util.h"
29 // Throttle updates to the UI thread so that a fast moving download doesn't
151 // request is a download.
186 // download (in the UI thread), we may receive a few more updates before the IO
197 DownloadFile* download = GetDownloadFile(id);
201 if (download)
202 download->AppendDataToFile(data->data(), data_len);
217 DownloadFile* download = GetDownloadFile(id);
218 if (!download)
221 download->Finish();
223 DownloadManager* download_manager = download->GetDownloadManager();
230 if (!download->GetSha256Hash(&hash))
237 id, download->bytes_so_far(), os_error, hash));
238 // We need to keep the download around until the UI thread has finalized
243 // run on the download thread. Since this message has been sent from the UI
244 // thread, the download may have already completed and won't exist in our map.
252 DownloadFile* download = it->second;
254 << " download = " << download->DebugString();
255 download->Cancel();
299 // Actions from the UI thread and run on the download thread
302 // name for the download specified by 'id'. Rename the in progress download.
313 DownloadFile* download = GetDownloadFile(id);
314 if (!download)
317 VLOG(20) << __FUNCTION__ << "()" << " download = " << download->DebugString();
319 if (!download->Rename(full_path)) {
327 // download specified by 'id'. Rename the download that's in the process
340 DownloadFile* download = GetDownloadFile(id);
341 if (!download)
344 DCHECK(download->GetDownloadManager());
345 DownloadManager* download_manager = download->GetDownloadManager();
347 VLOG(20) << __FUNCTION__ << "()" << " download = " << download->DebugString();
353 // downloading and a 2nd download is started for a file with the same
355 // the name on download start, and at that time the first file does
366 if (!download->Rename(new_path)) {
376 download->AnnotateWithSourceInformation();
391 DownloadFile* download = GetDownloadFile(id);
392 if (!download)
395 DownloadManager* download_manager = download->GetDownloadManager();
397 // Without a download manager, we can't cancel the request normally, so we
398 // need to do it here. The normal path will also update the download
400 download->CancelDownloadRequest(resource_dispatcher_host_);