Move URL from WebCore to WTF
[WebKit-https.git] / Source / WTF / wtf / cf / CFURLExtras.h
similarity index 86%
rename from Source/WebCore/platform/cf/CFURLExtras.h
rename to Source/WTF/wtf/cf/CFURLExtras.h
index ffd5706..dac49c3 100644 (file)
 #include <wtf/RetainPtr.h>
 #include <wtf/Vector.h>
 
-namespace WebCore {
+namespace WTF {
 
 class URL;
 typedef Vector<char, 512> URLCharBuffer;
 
-WEBCORE_EXPORT RetainPtr<CFURLRef> createCFURLFromBuffer(const char*, size_t, CFURLRef baseURL = 0);
-WEBCORE_EXPORT void getURLBytes(CFURLRef, URLCharBuffer&);
-WEBCORE_EXPORT void getURLBytes(CFURLRef, CString&);
+WTF_EXPORT_PRIVATE RetainPtr<CFURLRef> createCFURLFromBuffer(const char*, size_t, CFURLRef baseURL = 0);
+WTF_EXPORT_PRIVATE void getURLBytes(CFURLRef, URLCharBuffer&);
+WTF_EXPORT_PRIVATE void getURLBytes(CFURLRef, CString&);
 
 bool isCFURLSameOrigin(CFURLRef, const URL&);