Move parts of RenderFrameHostImpl::CanCommitOriginAndUrl() into ChildProcessSecurityPolicyImpl.

This change moves some of the commit checks from RenderFrameHostImpl into
ChildProcessSecurityPolicyImpl so that it will be easier to implement opaque origin checks
in a follow-up CL. There should be no behavior changes introduce by this CL.

Bug: 991607
Change-Id: Icda9b08ba5e08e153d028d64309f35da8ab68dd4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1836596
Reviewed-by: Alex Moshchuk <[email protected]>
Commit-Queue: Aaron Colwell <[email protected]>
Cr-Commit-Position: refs/heads/master@{#703441}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index 717b4bf9..69d6fdcf 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -625,6 +625,7 @@
     "cache_storage/legacy/legacy_cache_storage_manager.cc",
     "cache_storage/legacy/legacy_cache_storage_manager.h",
     "cache_storage/scoped_writable_entry.h",
+    "can_commit_status.h",
     "child_process_launcher.cc",
     "child_process_launcher.h",
     "child_process_launcher_helper.cc",