- From: Kinuko Yasuda <kinuko@chromium.org>
- Date: Tue, 27 Sep 2011 22:12:36 +0900
- To: Charles Pritchard <chuck@jumis.com>
- Cc: Jonas Sicking <jonas@sicking.cc>, public-webapps <public-webapps@w3.org>
- Message-ID: <CAMWgRNbh+Paf8Q9FrZSJOTC-kuAB-U3X7BPEM422ogCwGN1Huw@mail.gmail.com>
Just to confirm: Yes the interfaces are vendor prefixed (WebKit), and WebSQL, AppCache, IDB are treated as temporary in the current chromium implementation. On Tue, Sep 27, 2011 at 8:53 AM, Charles Pritchard <chuck@jumis.com> wrote: > Any ideas on how to express temp v. Perm to IndexedDB? > IIRC there's been a proposal to have a way to hint that an IndexedDB ObjectStore is 'evictable' or not: http://www.w3.org/Bugs/Public/show_bug.cgi?id=11350 Though it seems to be put off until later (version 2), I was assuming that once we have the 'evictable' option it would indicate the data's Temp/Perm attribute. Other storage APIs do not have a way to express temp/perm either. Chromium's current policy is defaulting to conservative or less astonishment to the users (in our belief), so that they won't see unexpected prompts or unknown data pressing their disk space. On Sep 26, 2011, at 4:43 PM, Jonas Sicking <jonas@sicking.cc> wrote: > > > Please don't use errorCallback/SuccessCallback. That's not used in any > > other APIs that are part of the cross-browser web platform. Instead > > return a request object on which events are fired. > > > > Don't use enums as the syntax sucks in JS. Use strings instead. We're > > making the same transition in a lot of other APIs. > > > > There's also a problem in that Gecko treats IndexedDB as permanent > > quota by default and Chrome treats it as temporary. Not sure how to > > solve that problem. > > > > You guys have this prefixed in your implementation for now, right? > > > > / Jonas > > > > On Mon, Sep 26, 2011 at 2:49 PM, Charles Pritchard <chuck@jumis.com> > wrote: > >> Though unstable, Chromium via WebKit has introduced an API for working > with > >> storage quotas: > >> > >> > https://groups.google.com/a/chromium.org/group/chromium-html5/msg/5261d24266ba4366 > >> > >> In brief: > >> > >> void queryUsageAndQuota( > >> unsigned short storageType, > >> optional StorageInfoUsageCallback successCallback, > >> optional StorageInfoErrorCallback errorCallback); > >> // Requests a new quota. Requesting a larger quota may require user's > >> // explicit permission via UI prompting / infobar. > >> > >> void requestQuota( > >> unsigned short storageType, > >> unsigned long long newQuotaInBytes, > >> optional StorageInfoQuotaCallback successCallback, > >> optional StorageInfoErrorCallback errorCallback); > >> }; > >> > >> > >> This API works across all storage types except localStorage, as > localStorage > >> is unique. > >> > >> It spans IndexedDB, FileSystem, AppCache and for those that are carrying > it, > >> WebSQL. > >> > >> > >> -Charles > >> > >> > > > >
Received on Tuesday, 27 September 2011 13:13:33 UTC