Merge logic for SameDomainOrHost for GURLs and Origins
Previously, we used to just call:
This isn't necessary, as we have all the information in the Origin itself.
Additionally, GetURL() isn't free. We do a bunch of string copies,
allocations, and some non-cheap policy decisions.
This patch moves GURL::HostIsIPAddress logic to url_util, and reuses
that code for both GURLs and Origins.