Skip to content
  • jorlow@chromium.org's avatar
    2010-08-13 Jeremy Orlow <jorlow@chromium.org> · fb151e40
    jorlow@chromium.org authored
            Some settings are linked to the PageGroup not the Page.  Create a new class for those.
            https://bugs.webkit.org/show_bug.cgi?id=43794
    
            Since persistient storage is shared between pages, there's no way to modify
            some settings related to it on a per page basis.  As such, it's not technically
            correct for these settings to be on the Page's settings.  Create a new class
            called GroupSettings, move  group-wide local storage setting there (the other we
            can't), and add a new setting for IndexedDB's path (which is prompting this change).
    
            No behavior has changed, so no tests.
    
            * Android.mk:
            * CMakeLists.txt:
            * GNUmakefile.am:
            * WebCore.gypi:
            * WebCore.pro:
            * WebCore.vcproj/WebCore.vcproj:
            * WebCore.xcodeproj/project.pbxproj:
            * page/GroupSettings.cpp: Added.
            (WebCore::GroupSettings::GroupSettings):
            (WebCore::GroupSettings::setLocalStorageQuotaBytes):
            (WebCore::GroupSettings::setLocalStorageDatabasePath):
            (WebCore::GroupSettings::setIndexedDBDatabasePath):
            * page/GroupSettings.h: Added.
            (WebCore::GroupSettings::create):
            (WebCore::GroupSettings::localStorageQuotaBytes):
            (WebCore::GroupSettings::localStorageDatabasePath):
            (WebCore::GroupSettings::indexedDBDatabasePath):
            * page/PageGroup.cpp:
            (WebCore::PageGroup::PageGroup):
            (WebCore::PageGroup::localStorage):
            * page/PageGroup.h:
            (WebCore::PageGroup::groupSettings):
            * page/Settings.cpp:
            (WebCore::Settings::Settings):
            (WebCore::Settings::setSessionStorageQuota):
            * page/Settings.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fb151e40