chrome/browser/download/download_path_reservation_tracker.cc
// Called on the FILE thread to remove the path reservation associated with
// |download_id|.
Called on the FILE thread to remove the path reservation associated with
|download_id|.
Called on the FILE thread to remove the path reservation associated with |download_id| .
void RevokeReservation(DownloadId download_id) {
  DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
  DCHECK(g_reservation_map != NULL);
  DCHECK(ContainsKey(*g_reservation_map, download_id));
  g_reservation_map->erase(download_id);
  if (g_reservation_map->size() == 0) {
    delete g_reservation_map;
    g_reservation_map = NULL;
  }
}
void RevokeReservation ( DownloadId download_id ) { DCHECK ( BrowserThread :: CurrentlyOn ( BrowserThread :: FILE ) ) ; DCHECK ( g_reservation_map != NULL ) ; DCHECK ( ContainsKey ( * g_reservation_map , download_id ) ) ; g_reservation_map -> erase ( download_id ) ; if ( g_reservation_map -> size ( ) == 0 ) { delete g_reservation_map ; g_reservation_map = NULL ; } }
Called on the FILE thread to remove the path reservation associated with
|download_id|.
Called on the FILE thread to remove the path reservation associated with |download_id| .
// No more reservations. Delete map.