Joe Staley has agreed upon a two-year contract extension that runs through 2019.

Staley has been a Pro Bowl left tackle in each of the past three seasons.

General manager Trent Baalke said in a statement that Staley's "commitment and professionalism have been great assets to our team and our community. This extension reflects our philosophy of investing in our core players."

"We both felt it was time to get something done, and what I'm most excited about is the opportunity to play my whole entire career as a San Francisco 49er," Staley said later on a conference call with reporters. "That was one of my goals that I set out to do as a rookie coming into the NFL -- make an NFL roster, become a starter, win a Super Bowl and play my whole entire career with one team.

"So very excited for the opportunity to do that and really grateful for the 49ers allowing me that opportunity. Now it's really just time to go work on that Super Bowl."