[Webkit-unassigned] [Bug 60355] Support unified quota API across various storage types

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 3 01:13:07 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=60355





--- Comment #1 from Kinuko Yasuda <kinuko at chromium.org>  2011-06-03 01:13:07 PST ---
The quota API update:

We have added following app-facing APIs to WebKit.
Current chromium is the only embedder that implements this API.

In the latest chromium port SQL DB and FileSystem API are under the unified quota management.
There's an ongoing work to put Appcache and IndexedDB under quota management too.
--------------------------------------------------------------------
Window implements QuotaStorageEnvironment;

[NoInterfaceObject]
interface QuotaStorageEnvironment {
  // Note: the attribute name is prefixed by 'webkit'
  readonly attribute StorageInfo webkitStorageInfo;
};

interface StorageInfo {
  const unsigned short TEMPORARY = 0;
  const unsigned short PERSISTENT = 1;

  // Queries the current quota and how much data is stored for the host.
  void queryUsageAndQuota(
      unsigned short storageType,
      optional StorageInfoUsageCallback successCallback,
      optional StorageInfoErrorCallback errorCallback);


  // Requests a new quota.  Requesting a larger quota may require user's permission and the embedder
  // browser may show some user notification UI to prompt the user.
  void requestQuota(
      unsigned short storageType,
      unsigned long long newQuotaInBytes,
      optional StorageInfoQuotaCallback successCallback,
      optional StorageInfoErrorCallback errorCallback);
};

[NoInterfaceObject, Callback=FunctionOnly]
interface StorageInfoUsageCallback {
  void handleEvent(unsigned long long currentUsageInBytes,
                   unsigned long long currentQuotaInBytes);
};

[NoInterfaceObject, Callback=FunctionOnly]
interface StorageInfoQuotaCallback {
  void handleEvent(unsigned long long grantedQuotaInBytes);
};

[NoInterfaceObject, Callback=FunctionOnly]
interface StorageInfoErrorCallback {
  void handleEvent(DOMCoreException error);
};
--------------------------------------------------------------------

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list