Wide receiver Marquise Goodwin and the 49ers have agreed to a three-year contract extension, with a source telling ESPN the deal is worth $20.3 million and includes $10 million guaranteed.