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

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, 6 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') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_database.h
===================================================================
--- webkit/appcache/appcache_database.h (revision 88615)
+++ 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>
@@ -22,10 +23,6 @@
class StatementID;
}
-namespace webkit_database {
-class QuotaTable;
-}
-
namespace appcache {
class AppCacheDatabase {
@@ -86,9 +83,8 @@
void Disable();
bool is_disabled() const { return is_disabled_; }
- int64 GetDefaultOriginQuota() { return 5 * 1024 * 1024; }
int64 GetOriginUsage(const GURL& origin);
- int64 GetOriginQuota(const GURL& origin);
+ bool GetAllOriginUsage(std::map<GURL, int64>* usage_map);
bool FindOriginsWithGroups(std::set<GURL>* origins);
bool FindLastStorageIds(
@@ -198,7 +194,6 @@
FilePath db_file_path_;
scoped_ptr<sql::Connection> db_;
scoped_ptr<sql::MetaTable> meta_table_;
- scoped_ptr<webkit_database::QuotaTable> quota_table_;
bool is_disabled_;
bool is_recreating_;
@@ -210,7 +205,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);
};
« no previous file with comments | « no previous file | webkit/appcache/appcache_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698