Introduce BaseFetchContext::AllowScriptFromSource().

BaseFetchContext::GetSettings() and GetContentSettingsClient() are used only for
checking whether we can load the scripts. And we don't use WorkerFetchContext
for loading scripts in the worker thread.

So it is OK to only implement FrameFetchContext::AllowScriptFromSource().

Bug: 443374
Change-Id: If9f6db44ca22174ecea56a119ddc038534bdc669
Reviewed-on: https://chromium-review.googlesource.com/563146
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#484872}
7 files changed