| 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..6c67cd5ee98b443bd03ea31355d9703e401b2668 100644
|
| --- a/content/browser/indexed_db/indexed_db_context_impl.cc
|
| +++ b/content/browser/indexed_db/indexed_db_context_impl.cc
|
| @@ -122,6 +122,20 @@ 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;
|
| +
|
| + result.push_back(IndexedDBInfo(origin,
|
| + GetOriginDiskUsage(origin),
|
| + GetOriginLastModified(origin)));
|
| + }
|
| + return result;
|
| +}
|
| +
|
| int64 IndexedDBContextImpl::GetOriginDiskUsage(const GURL& origin_url) {
|
| if (data_path_.empty() || !IsInOriginSet(origin_url))
|
| return 0;
|
|
|