Revert "Switch UseCounter to take a Document const ref instead of a pointer"

This reverts commit r159384 (bf738541bbd1d8d24a2533354e6f90308a09ebd5).
Because the CL caused security regression on the same origin check.

BUG=306350
TBR=adamk@chromium.org, esprehn@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159424 bbb929c8-8fbe-4397-9dbb-9b2b20218538