The entire series but two chapters (first in SS and first in GoF) are told through Harry's eyes. If Harry dies, I think it ought to be in the very end of the last book because nothing could be told after that. So, if Neville saves DD, it will be before Harry's death.
At least, that's what I think.