Avoid calling into the ContentBrowserClient interface from ResourceDispatcherHostImpl to determine whether an origin is legal.

Continuing changes to remove usage of ContentBrowserClient from
ResourceDispatcherHostImpl.

This patch adds a facility to the ResourceDispatcherHost class to register
HTTP header based interceptors. The caller can specify a prefix for the header value it expects. This is matched in
ResourceDispatcherHostImpl before invoking the caller callback. We allow
callers to pass in empty strings for the header value, in which case they
receive notifications for all occurrences of that HTTP header.

I also removed the IsIllegalOrigin method from the ContentBrowserClient
interface

BUG=598073

Review-Url: https://codereview.chromium.org/2222723002
Cr-Commit-Position: refs/heads/master@{#411114}
12 files changed