Add a renderer side version of the referrer check in the net library

This should hopefully give us enough information to debug the issue

BUG=331097
R=battre@chromium.org

Review URL: https://codereview.chromium.org/105853004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242767 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 242767