Send the 'page_url' parameter of the page (on which the right click was made to
open the context menu) as the 'referer' field of the http header field. This
change is done for cases OPENLINKNEWTAB, OPENLINKNEWWINDOW, and NOT for
OPENLINKOFFTHERECORD (Incognito).  Also Https to Https transition must NOT send
the referrer and this is checked in the 'OpenURL' method.  Call to the
ShouldHideReferrer method is done at render_view.cc

Author Ramkumar Gokarnesan - ramgo@yahoo-inc.com
BUG=1935
TEST=Try right click on a URL and click 'open link in new tab' or 'open link in new window' and see the referer information being sent as a part of the http header field. verify with wireshark / VS debugger.
Original review http://codereview.chromium.org/6681030/

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82323 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed