Changeset 82710 in webkit


Ignore:
Timestamp:
Apr 1, 2011 12:59:27 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-01 Chang Shu <cshu@webkit.org>

Reviewed by Darin Adler.

WebKitTestRunner needs layoutTestController.setDatabaseQuota
https://bugs.webkit.org/show_bug.cgi?id=57568

Update tests.

  • platform/mac-wk2/Skipped:

2011-04-01 Chang Shu <cshu@webkit.org>

Reviewed by Darin Adler.

WebKitTestRunner needs layoutTestController.setDatabaseQuota
https://bugs.webkit.org/show_bug.cgi?id=57568

  • WebProcess/InjectedBundle/API/c/WKBundle.cpp: (WKBundleSetDatabaseQuota):
  • WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
  • WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::setDatabaseQuota):
  • WebProcess/InjectedBundle/InjectedBundle.h:
  • WebProcess/WebCoreSupport/WebDatabaseManager.h:

2011-04-01 Chang Shu <cshu@webkit.org>

Reviewed by Darin Adler.

WebKitTestRunner needs layoutTestController.setDatabaseQuota
https://bugs.webkit.org/show_bug.cgi?id=57568

  • WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
  • WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: (WTR::LayoutTestController::setDatabaseQuota):
  • WebKitTestRunner/InjectedBundle/LayoutTestController.h:
Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r82708 r82710  
     12011-04-01  Chang Shu  <cshu@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        WebKitTestRunner needs layoutTestController.setDatabaseQuota
     6        https://bugs.webkit.org/show_bug.cgi?id=57568
     7
     8        Update tests.
     9
     10        * platform/mac-wk2/Skipped:
     11
    1122011-04-01  Martin Robinson  <mrobinson@igalia.com>
    213
  • trunk/LayoutTests/platform/mac-wk2/Skipped

    r82684 r82710  
    12021202fast/frames/flattening/iframe-flattening-simple.html
    12031203
    1204 # WebKitTestRunner needs layoutTestController.setDatabaseQuota
    1205 # <https://bugs.webkit.org/show_bug.cgi?id=57568>
    1206 storage/open-database-creation-callback.html
    1207 
    12081204# WebKitTestRunner needs layoutTestController.dumpDatabaseCallbacks
    12091205# <https://bugs.webkit.org/show_bug.cgi?id=57570>
     1206storage/open-database-creation-callback.html
    12101207storage/quota-tracking.html
    12111208
  • trunk/Source/WebKit2/ChangeLog

    r82709 r82710  
     12011-04-01  Chang Shu  <cshu@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        WebKitTestRunner needs layoutTestController.setDatabaseQuota
     6        https://bugs.webkit.org/show_bug.cgi?id=57568
     7
     8        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
     9        (WKBundleSetDatabaseQuota):
     10        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
     11        * WebProcess/InjectedBundle/InjectedBundle.cpp:
     12        (WebKit::InjectedBundle::setDatabaseQuota):
     13        * WebProcess/InjectedBundle/InjectedBundle.h:
     14        * WebProcess/WebCoreSupport/WebDatabaseManager.h:
     15
    1162011-04-01  Timothy Hatcher  <timothy@apple.com>
    217
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp

    r82649 r82710  
    143143    toImpl(bundleRef)->clearAllDatabases();
    144144}
     145
     146void WKBundleSetDatabaseQuota(WKBundleRef bundleRef, uint64_t quota)
     147{
     148    toImpl(bundleRef)->setDatabaseQuota(quota);
     149}
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h

    r82649 r82710  
    6868WK_EXPORT void WKBundleOverrideAllowUniversalAccessFromFileURLsForTestRunner(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
    6969WK_EXPORT void WKBundleClearAllDatabases(WKBundleRef bundle);
     70WK_EXPORT void WKBundleSetDatabaseQuota(WKBundleRef bundle, uint64_t);
    7071
    7172#ifdef __cplusplus
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp

    r82649 r82710  
    126126}
    127127
     128void InjectedBundle::setDatabaseQuota(uint64_t quota)
     129{
     130    WebDatabaseManager::shared().setQuotaForOrigin("file:///", quota);
     131}
     132
    128133static PassOwnPtr<Vector<String> > toStringVector(ImmutableArray* patterns)
    129134{
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h

    r82649 r82710  
    104104    // Local storage API
    105105    void clearAllDatabases();
     106    void setDatabaseQuota(uint64_t);
    106107
    107108    // Garbage collection API
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.h

    r82649 r82710  
    4747
    4848    void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*);
     49    void setQuotaForOrigin(const String& originIdentifier, unsigned long long quota) const;
    4950
    5051public:
     
    6263    void deleteDatabaseWithNameForOrigin(const String& databaseIdentifier, const String& originIdentifier) const;
    6364    void deleteDatabasesForOrigin(const String& originIdentifier) const;
    64     void setQuotaForOrigin(const String& originIdentifier, unsigned long long quota) const;
    6565
    6666    // WebCore::DatabaseTrackerClient
  • trunk/Tools/ChangeLog

    r82705 r82710  
     12011-04-01  Chang Shu  <cshu@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        WebKitTestRunner needs layoutTestController.setDatabaseQuota
     6        https://bugs.webkit.org/show_bug.cgi?id=57568
     7
     8        * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
     9        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
     10        (WTR::LayoutTestController::setDatabaseQuota):
     11        * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
     12
    1132011-04-01  Dirk Pranke  <dpranke@chromium.org>
    214
  • trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl

    r82649 r82710  
    7575        // Local storage API
    7676        void clearAllDatabases();
     77        void setDatabaseQuota(in unsigned long long quota);
    7778
    7879        // Compositing testing.
  • trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp

    r82649 r82710  
    292292}
    293293
     294void LayoutTestController::setDatabaseQuota(uint64_t quota)
     295{
     296    return WKBundleSetDatabaseQuota(InjectedBundle::shared().bundle(), quota);
     297}
     298
    294299bool LayoutTestController::isCommandEnabled(JSStringRef name)
    295300{
  • trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h

    r82649 r82710  
    109109    // Local storage
    110110    void clearAllDatabases();
     111    void setDatabaseQuota(uint64_t);
    111112
    112113    enum WhatToDump { RenderTree, MainFrameText, AllFramesText };
Note: See TracChangeset for help on using the changeset viewer.