Reduce code duplication by using WebCore's FileSystem functions
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 17:27:02 +0000 (17:27 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 17:27:02 +0000 (17:27 +0000)
commit4e16f7324be023f0236c4f2aa2feb29645eb59a4
treea3a3d130a99dbde0d9f0b1b7d4cb496aeb42f0c2
parentf543e94c9d95cdf1b4fc2aacdb1d3a5b8b4152e7
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
WebCore/ChangeLog
WebCore/platform/FileSystem.h
WebCore/platform/win/FileSystemWin.cpp
WebKit/win/ChangeLog
WebKit/win/WebIconDatabase.cpp
WebKit/win/WebPreferences.cpp