As an offline cloud-app developer, I've got these three kinds of data:<div>1) Data from the cloud that's cached locally on a best-effort basis, that can be thrown out if we start running out of space.</div><div>2) Data from the cloud that the app needs in order to keep functioning at all.</div>
<div>3) Locally created data that may not have been synced to the cloud yet, like emails written on an airplane. Even if the app stops working, this data is still valuable and recovering it is important. Once it is synced, it can usually be downgraded to 'best-effort'.</div>
<div><br>
</div><div>In order for apps to make the best use of the space they have available, especially if space is tight, it'd be great to have an API that indicates how big the app's quota is, and how much space it's taking up now. Then the app code can decide what data to keep and what data to drop, in case it approaches the max. Apps that sync a portion of a larger cloud-based datastore to local disk can also use the local quota info to help decide what to sync.</div>
<div><br></div><div>If the UA lets the user adjust the quotas, it'd be nice to expose a quota-max-changed event, so polling won't be necessary.</div>
<div><br><div class="gmail_quote">On Tue, Aug 25, 2009 at 3:59 PM, Aaron Boodman <span dir="ltr"><<a href="mailto:aa@google.com" target="_blank">aa@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Tue, Aug 25, 2009 at 3:51 PM, Jeremy Orlow<<a href="mailto:jorlow@chromium.org" target="_blank">jorlow@chromium.org</a>> wrote:<br>
> I still don't understand what use local storage has outside of 'cloud<br>
> storage'. Even in the extensions use case (which I think is out of scope<br>
> for this spec), there's no reason you can't sync user preferences and such<br>
> to the cloud.<br>
<br>
</div>The use case, though, is local storage, not cloud storage. Requiring<br>
cloud storage here kind of defeats the purpose and makes the API a lot<br>
harder to use.<br>
<font color="#888888"><br>
- a<br>
</font></blockquote></div><br></div>