Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: ios/web/public/origin_util.h

Issue 1919473003: [ios Mojo] Added util function to convert WKSecurityOrigin to GURL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/ios_web_unittests.gyp ('k') | ios/web/public/origin_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ios/web/ios_web_unittests.gyp ('k') | ios/web/public/origin_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698