Create net::FormatOriginForDisplay helper function.

net::FormatOriginForDisplay provides a canonical, concise, human-friendly
display for origins. It supports callers in any higher-layer module.

Based heavily on earlier work by dewittj and felt. Thanks!

BUG=402698
TBR=thakis,brettw

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

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