| Index: webkit/quota/quota_manager.h
|
| diff --git a/webkit/quota/quota_manager.h b/webkit/quota/quota_manager.h
|
| index ff199d0716800b218dff1be6d7d7cec6457cf474..b48ce7a695efa2fc2891075e0704f07d0afee0c5 100644
|
| --- a/webkit/quota/quota_manager.h
|
| +++ b/webkit/quota/quota_manager.h
|
| @@ -160,6 +160,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.
|
| @@ -179,6 +180,8 @@ class QuotaManager : public QuotaTaskObserver,
|
| // Methods for eviction logic.
|
| void DeleteOriginFromDatabase(const GURL& origin, StorageType type);
|
|
|
| + void DidOriginDataEvicted(QuotaStatusCode status);
|
| +
|
| virtual void GetLRUOrigin(
|
| StorageType type,
|
| GetLRUOriginCallback* callback) OVERRIDE;
|
| @@ -207,12 +210,18 @@ class QuotaManager : public QuotaTaskObserver,
|
|
|
| UsageAndQuotaDispatcherTaskMap usage_and_quota_dispatchers_;
|
|
|
| + scoped_ptr<EvictOriginDataCallback> evict_origin_data_callback_;
|
| + int num_eviction_requested_clients_;
|
| + int num_evicted_clients_;
|
| +
|
| 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);
|
| };
|
|
|
|
|