summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/Shared/API/c/WKURL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/Shared/API/c/WKURL.cpp')
-rw-r--r--Source/WebKit2/Shared/API/c/WKURL.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebKit2/Shared/API/c/WKURL.cpp b/Source/WebKit2/Shared/API/c/WKURL.cpp
index 6b7e567..dacd589 100644
--- a/Source/WebKit2/Shared/API/c/WKURL.cpp
+++ b/Source/WebKit2/Shared/API/c/WKURL.cpp
@@ -49,3 +49,13 @@ bool WKURLIsEqual(WKURLRef a, WKURLRef b)
{
return toImpl(a)->string() == toImpl(b)->string();
}
+
+WKStringRef WKURLCopyHostName(WKURLRef url)
+{
+ return toCopiedAPI(toImpl(url)->host());
+}
+
+WKStringRef WKURLCopyScheme(WKURLRef url)
+{
+ return toCopiedAPI(toImpl(url)->protocol());
+}