diff options
Diffstat (limited to 'webkit/database')
-rw-r--r-- | webkit/database/database_tracker.cc | 5 | ||||
-rw-r--r-- | webkit/database/database_tracker.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/webkit/database/database_tracker.cc b/webkit/database/database_tracker.cc index ea1994e..38c6298 100644 --- a/webkit/database/database_tracker.cc +++ b/webkit/database/database_tracker.cc @@ -208,6 +208,11 @@ void DatabaseTracker::SetOriginQuotaInMemory(const string16& origin_identifier, in_memory_quotas_[origin_identifier] = new_quota; } +void DatabaseTracker::ResetOriginQuotaInMemory( + const string16& origin_identifier) { + in_memory_quotas_.erase(origin_identifier); +} + bool DatabaseTracker::DeleteClosedDatabase(const string16& origin_identifier, const string16& database_name) { if (!LazyInit()) diff --git a/webkit/database/database_tracker.h b/webkit/database/database_tracker.h index d1d5a43..f7468e4 100644 --- a/webkit/database/database_tracker.h +++ b/webkit/database/database_tracker.h @@ -126,6 +126,7 @@ class DatabaseTracker void SetOriginQuota(const string16& origin_identifier, int64 new_quota); void SetOriginQuotaInMemory(const string16& origin_identifier, int64 new_quota); + void ResetOriginQuotaInMemory(const string16& origin_identifier); int64 GetDefaultQuota() { return default_quota_; } // Sets the default quota for all origins. Should be used in tests only. |