Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(618)

Unified Diff: webkit/appcache/appcache_database.h

Issue 7031065: AppCache + Quota integration (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/appcache/appcache_database.cc » ('j') | webkit/appcache/appcache_quota_client.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | webkit/appcache/appcache_database.cc » ('j') | webkit/appcache/appcache_quota_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698