Hopper extends Giants’ contract