The successive passage of electrons from one cytochrome or flavoprotein to another by a series of oxidation-reduction reactions during the aerobic production of ATP, with the electrons originating from an oxidizable substrate and ultimately being passed to molecular oxygen. The oxidation-reduction reactions generate the energy required for the production of ATP