[OnionSoup] Move content::IsOriginSecure into Blink

Currently, content::IsOriginSecure() util is used by
ResourceDispatcher, which will be removed along with OnionSoup.

This patch moves content::IsOriginSecure() into Blink, so that we
could onion-soupify the ResourceDispatcher.

Change-Id: I7b9975ccc50bb28e13c37107588c9e071450f39f
Bug: 1110032
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2392044
Commit-Queue: Minggang Wang <[email protected]>
Reviewed-by: Colin Blundell <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Hiroki Nakagawa <[email protected]>
Cr-Commit-Position: refs/heads/master@{#804829}
diff --git a/components/payments/content/payment_request.cc b/components/payments/content/payment_request.cc
index 15a3736..1537f27 100644
--- a/components/payments/content/payment_request.cc
+++ b/components/payments/content/payment_request.cc
@@ -39,8 +39,8 @@
 #include "content/public/browser/render_process_host.h"
 #include "content/public/browser/web_contents.h"
 #include "content/public/common/content_features.h"
-#include "content/public/common/origin_util.h"
 #include "services/metrics/public/cpp/ukm_source_id.h"
+#include "third_party/blink/public/common/loader/network_utils.h"
 
 namespace payments {
 namespace {
@@ -130,7 +130,7 @@
   client_.Bind(std::move(client));
 
   const GURL last_committed_url = delegate_->GetLastCommittedURL();
-  if (!content::IsOriginSecure(last_committed_url)) {
+  if (!blink::network_utils::IsOriginSecure(last_committed_url)) {
     log_.Error(errors::kNotInASecureOrigin);
     OnConnectionTerminated();
     return;