whopping cough

Di
I know you get the whooping cough vaccine in your third trimester but out of curiosity if you wanted to wait till the baby was born is it the baby that gets the whooping cough vaccine straight away or the mum or both?