Only call UrlToFullHashes once from LocalSafeBrowsingDatabaseManager::CheckBrowseUrl

Add ContainsBrowseHashes and ContainsUnwantedSoftwareHashes to
SafeBrowsingDatabase, to parallel ContainsBrowseUrl and
ContainsUnwantedSoftwareUrl. These functions take the full hash set instead of
the url, so that the caller can look up both "browse" and "unwanted software"
data for the same url without incurring the overhead of calling UrlToFullHashes
twice.

BUG=576750

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

Cr-Commit-Position: refs/heads/master@{#369755}
5 files changed