Move Windows safe file creation code into WebCore from WebPreferences
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 17:27:53 +0000 (17:27 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 17:27:53 +0000 (17:27 +0000)
commit69397be343e249b2b97010c106b31c722c188cd5
treef96a8763dde39e5e41c6d9e290acdb58b02c88d3
parent4e16f7324be023f0236c4f2aa2feb29645eb59a4
 Move Windows safe file creation code into WebCore from WebPreferences

 WebCore:

         Move Windows safe file creation code into WebCore from WebPreferences

         Reviewed by Brady.

         * platform/FileSystem.h:
         * platform/win/FileSystemWin.cpp:
         (WebCore::safeCreateFile): Moved here from WebKit/win/WebPreferences.cpp.

 WebKit/win:

         Move safe file creation code to WebCore

         Reviewed by Brady.

         * WebPreferences.cpp:
         (preferencesPath): Made into a static helper function.
         (WebPreferences::save): Now calls WebCore's safeCreateFile function.
         (WebPreferences::load): Uses String/CString to handle the UTF-8
         conversion.
         * WebPreferences.h: Removed preferencesPath and
         safeCreateFileWithData.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/FileSystem.h
WebCore/platform/win/FileSystemWin.cpp
WebKit/win/ChangeLog
WebKit/win/WebPreferences.cpp
WebKit/win/WebPreferences.h