Skip to content
  • kinuko@chromium.org's avatar
    Quota API: Update IDL to make it match the latest WD · 5c3424aa
    kinuko@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=88396
    
    Reviewed by Adam Barth.
    
    Source/WebCore:
    
    Add a new interface object (navigator.StorageQuota) and deprecate the old one (window.StorageInfo)
    to make the code match with the latest Quota API WD:
    http://www.w3.org/TR/quota-api/
    
    Tests: storage/storagequota-query-usage.html
           storage/storagequota-request-quota.html
    
    * CMakeLists.txt:
    * DerivedSources.cpp:
    * DerivedSources.make:
    * DerivedSources.pri:
    * GNUmakefile.list.am:
    * Modules/quota/DOMWindowQuota.cpp:
    (WebCore::DOMWindowQuota::webkitStorageInfo): Added a deprecate warning message for the old interface.
    * Modules/quota/NavigatorStorageQuota.cpp: Added for the new interface.
    * Modules/quota/NavigatorStorageQuota.h: Added for the new interface.
    * Modules/quota/NavigatorStorageQuota.idl: Added for the new interface.
    * Modules/quota/StorageErrorCallback.cpp:
    (WebCore::StorageErrorCallback::CallbackTask::CallbackTask):
    (WebCore::StorageErrorCallback::CallbackTask::performTask):
    * Modules/quota/StorageErrorCallback.h: Renamed from Source/WebCore/Modules/quota/StorageInfoErrorCallback.h.
    (WebCore):
    (StorageErrorCallback):
    (WebCore::StorageErrorCallback::~StorageErrorCallback):
    (WebCore::StorageErrorCallback::CallbackTask::create):
    * Modules/quota/StorageErrorCallback.idl: Renamed from Source/WebCore/Modules/quota/StorageInfoErrorCallback.idl.
    * Modules/quota/StorageInfo.cpp: Added code to relay requests to the new StorageQuota implementation.
    * Modules/quota/StorageInfo.h:
    * Modules/quota/StorageInfo.idl:
    * Modules/quota/StorageQuota.cpp: Added for the new interface.
    * Modules/quota/StorageQuota.h:
    (WebCore::StorageQuota::create):
    * Modules/quota/StorageQuota.idl: Copied from Source/WebCore/Modules/quota/StorageInfo.idl.
    * Modules/quota/StorageQuotaCallback.h: Renamed from Source/WebCore/Modules/quota/StorageInfoQuotaCallback.h.
    * Modules/quota/StorageQuotaCallback.idl: Renamed from Source/WebCore/Modules/quota/StorageInfoQuotaCallback.idl.
    * Modules/quota/StorageUsageCallback.h: Renamed from Source/WebCore/Modules/quota/StorageInfoUsageCallback.h.
    * Modules/quota/StorageUsageCallback.idl: Renamed from Source/WebCore/Modules/quota/StorageInfoUsageCallback.idl.
    * Target.pri:
    * WebCore.gypi:
    * WebCore.vcproj/WebCore.vcproj:
    * WebCore.vcxproj/WebCore.vcxproj:
    * WebCore.vcxproj/WebCore.vcxproj.filters:
    * page/FeatureObserver.h:
    
    Source/WebKit/chromium:
    
    Add a new interface object (navigator.StorageQuota) and deprecate the old one (window.StorageInfo)
    to make the code match with the latest Quota API WD:
    http://www.w3.org/TR/quota-api/
    
    * WebKit.gyp:
    * src/AssertMatchingEnums.cpp:
    * src/StorageQuotaChromium.cpp: Renamed from Source/WebKit/chromium/src/StorageInfoChromium.cpp.
    (WebCore):
    (WebCore::StorageQuota::queryUsageAndQuota):
    (WebCore::StorageQuota::requestQuota):
    * src/WebStorageQuotaCallbacksImpl.cpp:
    (WebKit::WebStorageQuotaCallbacksImpl::WebStorageQuotaCallbacksImpl):
    * src/WebStorageQuotaCallbacksImpl.h:
    (WebCore):
    (WebStorageQuotaCallbacksImpl):
    
    LayoutTests:
    
    * platform/chromium/TestExpectations:
    * storage/storagequota-query-usage-expected.txt: Added.
    * storage/storagequota-query-usage.html: Added.
    * storage/storagequota-request-quota-expected.txt: Added.
    * storage/storagequota-request-quota.html: Added.
    
    Rebaselines:
    * platform/chromium/fast/dom/everything-to-string-expected.txt: Added.
    * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt:
    * platform/chromium/fast/js/global-constructors-expected.txt:
    * platform/chromium/http/tests/security/isolatedWorld/all-window-properties-expected.txt: Added.
    * platform/chromium/http/tests/security/isolatedWorld/all-window-prototypes-expected.txt: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    5c3424aa