The purpose of glDepthFunc is to then map the depth coordinates [-1, 1] onto the window's coordinates [0, 1] which is why I feel it is correct for them to be in the Viewport class.

http://www.opengl.org/sdk/docs/man/xhtml/glDepthRange.xml