diff options
Diffstat (limited to 'webkit/database/database_tracker.h')
-rw-r--r-- | webkit/database/database_tracker.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/database/database_tracker.h b/webkit/database/database_tracker.h index 785cd98..90c9ebc 100644 --- a/webkit/database/database_tracker.h +++ b/webkit/database/database_tracker.h @@ -124,7 +124,10 @@ class DatabaseTracker bool GetAllOriginsInfo(std::vector<OriginInfo>* origins_info); void SetOriginQuota(const string16& origin_identifier, int64 new_quota); + void SetOriginQuotaInMemory(const string16& origin_identifier, + int64 new_quota); + int64 GetDefaultQuota() { return default_quota_; } // Sets the default quota for all origins. Should be used in tests only. void SetDefaultQuota(int64 quota); @@ -216,6 +219,10 @@ class DatabaseTracker // Default quota for all origins; changed only by tests int64 default_quota_; + // Store quotas for extensions in memory, in order to prevent writing a row + // to quota_table_ every time an extention is loaded. + std::map<string16, int64> in_memory_quotas_; + FRIEND_TEST(DatabaseTrackerTest, TestIt); }; |