Move Windows safe file creation code into WebCore from WebPreferences
[WebKit-https.git] / WebCore / platform / FileSystem.h
index c3adedeb66d9818d100d4e908a1c66ccf76bf1bd..461795167b4eac0a8cb5962651034ee2ef0c7500 100644 (file)
@@ -32,6 +32,8 @@
 #include <wtf/Platform.h>
 #include <wtf/Vector.h>
 
+typedef const struct __CFData* CFDataRef;
+
 namespace WebCore {
 
 class CString;
@@ -49,6 +51,8 @@ CString fileSystemRepresentation(const String&);
 #if PLATFORM(WIN)
 String localUserSpecificStorageDirectory();
 String roamingUserSpecificStorageDirectory();
+
+bool safeCreateFile(const String&, CFDataRef);
 #endif
 
 } // namespace WebCore