Index: webkit/appcache/appcache_database.h |
=================================================================== |
--- webkit/appcache/appcache_database.h (revision 87543) |
+++ 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, |