| Index: webkit/appcache/appcache_database.h
|
| ===================================================================
|
| --- webkit/appcache/appcache_database.h (revision 88004)
|
| +++ webkit/appcache/appcache_database.h (working copy)
|
| @@ -5,6 +5,7 @@
|
| #ifndef WEBKIT_APPCACHE_APPCACHE_DATABASE_H_
|
| #define WEBKIT_APPCACHE_APPCACHE_DATABASE_H_
|
|
|
| +#include <map>
|
| #include <set>
|
| #include <vector>
|
|
|
| @@ -86,10 +87,13 @@
|
| void Disable();
|
| bool is_disabled() const { return is_disabled_; }
|
|
|
| + // TODO(michaeln): Remove quota support from this class.
|
| int64 GetDefaultOriginQuota() { return 5 * 1024 * 1024; }
|
| - int64 GetOriginUsage(const GURL& origin);
|
| int64 GetOriginQuota(const GURL& origin);
|
|
|
| + int64 GetOriginUsage(const GURL& origin);
|
| + bool GetAllOriginUsage(std::map<GURL, int64>* usage_map);
|
| +
|
| bool FindOriginsWithGroups(std::set<GURL>* origins);
|
| bool FindLastStorageIds(
|
| int64* last_group_id, int64* last_cache_id, int64* last_response_id,
|
| @@ -210,7 +214,7 @@
|
| FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, OnlineWhiteListRecords);
|
| FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, ReCreate);
|
| FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, DeletableResponseIds);
|
| - FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, Quotas);
|
| + FRIEND_TEST_ALL_PREFIXES(AppCacheDatabaseTest, OriginUsage);
|
|
|
| DISALLOW_COPY_AND_ASSIGN(AppCacheDatabase);
|
| };
|
|
|