Lines Matching refs:save_file
15 #include "content/browser/download/save_file.h"
218 SaveFile* save_file = new SaveFile(info, false);
221 save_file->Initialize();
224 save_file_map_[info->save_id] = save_file;
225 info->path = save_file->FullPath();
240 SaveFile* save_file = LookupSaveFile(save_id);
241 if (save_file) {
242 DCHECK(save_file->InProgress());
245 save_file->AppendDataToFile(data->data(), data_len);
250 save_file->save_id(),
251 save_file->BytesSoFar(),
273 SaveFile* save_file = it->second;
279 // DCHECK(save_file->InProgress());
282 << " save_file = " << save_file->DebugString();
286 save_file->BytesSoFar(), is_success));
288 save_file->Finish();
289 save_file->Detach();
407 SaveFile* save_file = it->second;
409 if (!save_file->InProgress()) {
413 base::DeleteFile(save_file->FullPath(), false);
414 } else if (save_file->save_source() ==
423 save_file->render_process_id(), save_file->request_id()));
429 delete save_file;
440 SaveFile* save_file = LookupSaveFile(save_id);
441 if (!save_file)
444 if (!save_file->InProgress())
448 save_file->Finish();
449 save_file->Detach();
461 bool success = base::CopyFile(file_path, save_file->FullPath());
463 base::DeleteFile(save_file->FullPath(), false);
490 SaveFile* save_file = it->second;
491 DCHECK(!save_file->InProgress());
492 save_file->Rename(i->second);
493 delete save_file;
524 SaveFile* save_file = it->second;
525 DCHECK(!save_file->InProgress());
526 base::DeleteFile(save_file->FullPath(), false);
527 delete save_file;