| Index: content/browser/indexed_db/indexed_db_context_impl.cc
|
| diff --git a/content/browser/indexed_db/indexed_db_context_impl.cc b/content/browser/indexed_db/indexed_db_context_impl.cc
|
| index 7992370af93cf4cffc593b9a6d4ced04cd854dfa..ba9904f91481deb5fac2234f6a949ff145712900 100644
|
| --- a/content/browser/indexed_db/indexed_db_context_impl.cc
|
| +++ b/content/browser/indexed_db/indexed_db_context_impl.cc
|
| @@ -122,6 +122,21 @@ std::vector<GURL> IndexedDBContextImpl::GetAllOrigins() {
|
| return origins;
|
| }
|
|
|
| +std::vector<IndexedDBInfo> IndexedDBContextImpl::GetAllOriginsInfo() {
|
| + std::vector<GURL> origins = GetAllOrigins();
|
| + std::vector<IndexedDBInfo> result;
|
| + for (std::vector<GURL>::const_iterator iter = origins.begin();
|
| + iter != origins.end(); ++iter) {
|
| + const GURL& origin = *iter;
|
| +
|
| + IndexedDBInfo info = { origin,
|
| + GetOriginDiskUsage(origin),
|
| + GetOriginLastModified(origin) };
|
| + result.push_back(info);
|
| + }
|
| + return result;
|
| +}
|
| +
|
| int64 IndexedDBContextImpl::GetOriginDiskUsage(const GURL& origin_url) {
|
| if (data_path_.empty() || !IsInOriginSet(origin_url))
|
| return 0;
|
|
|