[Reland] Detect CSP errors from translate.js and pass it back to native code.

Currently all CSP errors are reported wrongly as INITIALIZATION_ERROR,
this change will report it as BAD_ORIGIN.

Bug: 686364, 877485
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: Id08dd73a8604c4899f2f8f5ee147c6a1a4c0061a
Reviewed-on: https://chromium-review.googlesource.com/1188425
Commit-Queue: John Wu <[email protected]>
Reviewed-by: David Roger <[email protected]>
Reviewed-by: Eugene But <[email protected]>
Cr-Commit-Position: refs/heads/master@{#586451}
8 files changed