chrome/browser/download/download_path_reservation_tracker.cc
// Called on the FILE thread to update the path of the reservation associated
// with |download_id| to |new_path|.
Called on the FILE thread to update the path of the reservation associated
with |download_id| to |new_path|.
Called on the FILE thread to update the path of the reservation associated with |download_id| to |new_path| .
void UpdateReservation(DownloadId download_id, const FilePath& new_path) {
  DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
  DCHECK(g_reservation_map != NULL);
  ReservationMap::iterator iter = g_reservation_map->find(download_id);
  if (iter != g_reservation_map->end()) {
    iter->second = new_path;
  } else {
    NOTREACHED();
  }
}
void UpdateReservation ( DownloadId download_id , const FilePath & new_path ) { DCHECK ( BrowserThread :: CurrentlyOn ( BrowserThread :: FILE ) ) ; DCHECK ( g_reservation_map != NULL ) ; ReservationMap :: iterator iter = g_reservation_map -> find ( download_id ) ; if ( iter != g_reservation_map -> end ( ) ) { iter -> second = new_path ; } else { NOTREACHED ( ) ; } }
Called on the FILE thread to update the path of the reservation associated
with |download_id| to |new_path|.
Called on the FILE thread to update the path of the reservation associated with |download_id| to |new_path| .
// This would happen if an UpdateReservation() notification was scheduled on // the FILE thread before ReserveInternal(), or after a Revoke() // call. Neither should happen.