Allow SW registration only if it's secure AND it's HTTP or HTTPS
BUG=453982
TEST=tested manually
TEST=content_unittests:ServiceWorkerDispatcherHostTest.Register_FileSystem*
Review URL: https://codereview.chromium.org/889323002
Cr-Commit-Position: refs/heads/master@{#314143}