| // Copyright 2015 The Chromium Authors. All rights reserved. | 
 | // Use of this source code is governed by a BSD-style license that can be | 
 | // found in the LICENSE file. | 
 |  | 
 | #import "ios/web/common/origin_util.h" | 
 |  | 
 | #include "base/stl_util.h" | 
 | #include "net/base/url_util.h" | 
 | #include "services/network/public/cpp/is_potentially_trustworthy.h" | 
 | #include "url/gurl.h" | 
 | #include "url/url_util.h" | 
 |  | 
 | #if !defined(__has_feature) || !__has_feature(objc_arc) | 
 | #error "This file requires ARC support." | 
 | #endif | 
 |  | 
 | namespace web { | 
 |  | 
 | bool IsOriginSecure(const GURL& url) { | 
 |   return network::IsUrlPotentiallyTrustworthy(url); | 
 | } | 
 |  | 
 | }  // namespace web |