diff options
Diffstat (limited to 'Source/WebCore/platform/KURL.h')
-rw-r--r-- | Source/WebCore/platform/KURL.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/WebCore/platform/KURL.h b/Source/WebCore/platform/KURL.h index cbf0d8b..521e7ca 100644 --- a/Source/WebCore/platform/KURL.h +++ b/Source/WebCore/platform/KURL.h @@ -27,6 +27,7 @@ #define KURL_h #include "PlatformString.h" +#include "URLString.h" #include <wtf/HashMap.h> #if PLATFORM(CF) @@ -74,6 +75,7 @@ public: // It is usually best to avoid repeatedly parsing a string, unless memory saving outweigh the possible slow-downs. KURL(ParsedURLStringTag, const char*); KURL(ParsedURLStringTag, const String&); + KURL(ParsedURLStringTag, const URLString&); // Resolves the relative URL with the given base URL. If provided, the // TextEncoding is used to encode non-ASCII characers. The base URL can be @@ -117,11 +119,13 @@ public: bool canSetHostOrPort() const { return isHierarchical(); } bool canSetPathname() const { return isHierarchical(); } - + #if USE(GOOGLEURL) const String& string() const { return m_url.string(); } + URLString urlString() const { return URLString(m_url.string()); } #else const String& string() const { return m_string; } + URLString urlString() const { return URLString(m_string); } #endif String protocol() const; |