This was the Dolphin Encounter at Chankanaab National Park in Cozumel, Mexico.  With this excursion you are allowed to interact with the dolphins, not actually swim with them.  The excursion is a bit expensive but worth the money.  The encounters are operated by Dolphin Discovery, they offer similar experiences in other ports as well.

Dolphin Encounter at

Chankanaab National Park