Former San Francisco 49er defensive tackle Ray McDonald was charged with domestic violence and false imprisonment in connection with allegations he assaulted his ex-fiancee while she held their 2-month-old child, prosecutors said Thursday.