[Quota] Surface per-storage-type size information in QuotaManager |
|||
Issue descriptionCurrently the GetUsageAndQuotaForWebapps returns usage on a global level: https://cs.chromium.org/chromium/src/storage/browser/quota/quota_manager.h?q=quotamanager&dr=CSs&l=138 (Temporary storage is everything basically, Persistent is just legacy fileapi) Let's add information on a per-storage-type basis, as this is available internally. This can then be surfaced to DevTools and such.
,
Jun 5 2017
+Michael, who can provide guidance here.
,
Jun 5 2017
Take a look at https://bugs.chromium.org/p/chromium/issues/detail?id=725238 I think we can build upon the GetUsageAndQuotaForWebApps method to return more info about how much each quotaClient is using, see the std::vector in the callback... virtual void GetUsageAndQuotaForWebApps( const GURL& origin, StorageType type, const UsageAndQuotaCallback& callback); typedef base::Callback< void(QuotaStatusCode, int64_t /* usage */, int64_t /* quota */, std::vector<std::tuple<QuotaClient::ID, int64_t>>)> UsageAndQuotaCallback; And devtools could directly query the SpecialStoragePolicy to determine the whether the origin is durable or unlimited (etc), we could make a public accessor to help with that.
,
Jun 19 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by dmu...@chromium.org
, Jun 5 2017