| Index: storage/browser/quota/quota_manager.h
|
| diff --git a/storage/browser/quota/quota_manager.h b/storage/browser/quota/quota_manager.h
|
| index 506aa0ad05f806d9bd3ec58f1734ca2829a97229..a03d5279187351b289235238573ec505dae0c501 100644
|
| --- a/storage/browser/quota/quota_manager.h
|
| +++ b/storage/browser/quota/quota_manager.h
|
| @@ -139,7 +139,12 @@ class STORAGE_EXPORT QuotaManager
|
| const base::FilePath& profile_path,
|
| const scoped_refptr<base::SingleThreadTaskRunner>& io_thread,
|
| const scoped_refptr<base::SequencedTaskRunner>& db_thread,
|
| - const scoped_refptr<SpecialStoragePolicy>& special_storage_policy);
|
| + const scoped_refptr<SpecialStoragePolicy>& special_storage_policy,
|
| + QuotaEvictionPolicy* temporary_storage_eviction_policy);
|
| +
|
| + void set_temporary_storage_eviction_policy(QuotaEvictionPolicy* policy) {
|
| + temporary_storage_eviction_policy_ = policy;
|
| + }
|
|
|
| // Returns a proxy object that can be used on any thread.
|
| QuotaManagerProxy* proxy() { return proxy_.get(); }
|
| @@ -288,6 +293,7 @@ class STORAGE_EXPORT QuotaManager
|
| friend struct QuotaManagerDeleter;
|
|
|
| class GetUsageInfoTask;
|
| + class GetTemporaryEvictionOriginTask;
|
|
|
| class OriginDataDeleter;
|
| class HostDataDeleter;
|
| @@ -433,6 +439,7 @@ class STORAGE_EXPORT QuotaManager
|
| // TODO(michaeln): Need a way to clear the cache, drop and
|
| // reinstantiate the trackers when they're not handling requests.
|
|
|
| + QuotaEvictionPolicy* temporary_storage_eviction_policy_;
|
| scoped_ptr<QuotaTemporaryStorageEvictor> temporary_storage_evictor_;
|
| EvictionContext eviction_context_;
|
|
|
|
|