Reduce code duplication by using WebCore's FileSystem functions
WebCore:
Add methods to FileSystemWin to get some user profile directories
These directories are used to hold things like preferences, caches,
etc.
Reviewed by Brady.
* platform/FileSystem.h: Added new method declarations for Windows
only.
* platform/win/FileSystemWin.cpp:
(WebCore::bundleName): Added.
(WebCore::storageDirectory): Added.
(WebCore::cachedStorageDirectory): Added.
(WebCore::localUserSpecificStorageDirectory): Added. Returns the
directory where WebKit should store any user-specific data that should
stay local to the current machine (i.e., shouldn't be stored in a
roaming profile).
(WebCore::roamingUserSpecificStorageDirectory): Added. Returns the
directory where WebKit should store any user-specific data that should
move with the user from machine to machine (i.e., should be stored in
a roaming profile).
WebKit/win:
Reduce code duplication by using WebCore's FileSystem functions
Reviewed by Brady.
* WebIconDatabase.cpp: Removed a now-unused function and a fixed
FIXME.
(WebIconDatabase::init): Changed to use FileSystem functions.
* WebPreferences.cpp:
(WebPreferences::preferencesPath): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26990
268f45cc-cd09-0410-ab3c-
d52691b4dbfc