What did chloroplasts evolve from according to the endosymbiotic hypothesis?

Aribosomes
Bmitochondria
Caerobic bacteria
Dphotosynthetic bacteria