Molecules in the thylakoid membrane or inner mitochondrial membrane that use some of the energy in electrons to pump protons across the membrane.