When does Doctor Who fan fiction become canon?

What actually counts as Doctor Who canon—and who gets to decide?