Change to String-based CSPSource matching functions.

Currently, CSPSource's matching functions match the relevant
component against a KURL. We need to match against Strings
in order to implement some new features, so this patch
converts the comparisons in preparation for that work.

BUG=647588

Review-Url: https://codereview.chromium.org/2456493002
Cr-Commit-Position: refs/heads/master@{#427997}
2 files changed