Index: ios/web/public/origin_util.h |
diff --git a/ios/web/public/origin_util.h b/ios/web/public/origin_util.h |
index 1701ee4b7f911831fdae1d66358a4007d18fbc59..a731d089c2ad5a0c0724b0446033954e96894d3f 100644 |
--- a/ios/web/public/origin_util.h |
+++ b/ios/web/public/origin_util.h |
@@ -6,6 +6,7 @@ |
#define IOS_WEB_PUBLIC_ORIGIN_UTIL_H_ |
class GURL; |
+@class WKSecurityOrigin; |
namespace web { |
@@ -16,6 +17,10 @@ namespace web { |
// See https://www.w3.org/TR/powerful-features/#is-origin-trustworthy. |
bool IsOriginSecure(const GURL& url); |
+// Converts WKSecurityOrigin to GURL origin. |
+// Returns empty url if |origin| is nil. |
+GURL GURLOriginWithWKSecurityOrigin(WKSecurityOrigin* origin); |
+ |
} // namespace web |
#endif // IOS_WEB_PUBLIC_ORIGIN_UTIL_H_ |