Chromium Code Reviews| Index: webkit/quota/quota_manager.h |
| diff --git a/webkit/quota/quota_manager.h b/webkit/quota/quota_manager.h |
| index e3375cc52bc99074d92f10f37596a71be3614fed..81c55ed647389a606894f207541668641ed74132 100644 |
| --- a/webkit/quota/quota_manager.h |
| +++ b/webkit/quota/quota_manager.h |
| @@ -156,6 +156,7 @@ class QuotaManager : public QuotaTaskObserver, |
| friend struct QuotaManagerDeleter; |
| friend class QuotaManagerProxy; |
| + friend class QuotaManagerTest; |
| // This initialization method is lazily called on the IO thread |
| // when the first quota manager API is called. |
| @@ -175,6 +176,8 @@ class QuotaManager : public QuotaTaskObserver, |
| // Methods for eviction logic. |
| void DeleteOriginFromDatabase(const GURL& origin, StorageType type); |
| + void OnOriginDataEvicted(QuotaStatusCode status); |
| + |
| virtual void GetLRUOrigin( |
| StorageType type, |
| GetLRUOriginCallback* callback) OVERRIDE; |
| @@ -203,12 +206,18 @@ class QuotaManager : public QuotaTaskObserver, |
| UsageAndQuotaDispatcherTaskMap usage_and_quota_dispatchers_; |
| + EvictOriginDataCallback* evict_origin_data_callback_; |
| + int num_deletion_requested_clients_; |
| + int num_deleted_clients_; |
|
michaeln
2011/05/17 19:30:01
consider using the term 'evict' in some form in al
Dai Mikurube (NOT FULLTIME)
2011/05/18 04:34:48
Done.
|
| + |
| int64 temporary_global_quota_; |
| QuotaCallbackQueue temporary_global_quota_callbacks_; |
| // Map from origin to count. |
| std::map<GURL, int> origins_in_use_; |
| + base::ScopedCallbackFactory<QuotaManager> callback_factory_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(QuotaManager); |
| }; |