| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ | 5 #ifndef WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ |
| 6 #define WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ | 6 #define WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/memory/scoped_callback_factory.h" | |
| 13 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 14 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
| 15 #include "base/timer.h" | 14 #include "base/timer.h" |
| 16 #include "webkit/quota/quota_types.h" | 15 #include "webkit/quota/quota_types.h" |
| 17 | 16 |
| 18 class GURL; | 17 class GURL; |
| 19 | 18 |
| 20 namespace base { | 19 namespace base { |
| 21 class MessageLoopProxy; | 20 class MessageLoopProxy; |
| 22 } | 21 } |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 Statistics previous_statistics_; | 124 Statistics previous_statistics_; |
| 126 EvictionRoundStatistics round_statistics_; | 125 EvictionRoundStatistics round_statistics_; |
| 127 base::Time time_of_end_of_last_nonskipped_round_; | 126 base::Time time_of_end_of_last_nonskipped_round_; |
| 128 base::Time time_of_end_of_last_round_; | 127 base::Time time_of_end_of_last_round_; |
| 129 | 128 |
| 130 int64 interval_ms_; | 129 int64 interval_ms_; |
| 131 bool repeated_eviction_; | 130 bool repeated_eviction_; |
| 132 | 131 |
| 133 base::OneShotTimer<QuotaTemporaryStorageEvictor> eviction_timer_; | 132 base::OneShotTimer<QuotaTemporaryStorageEvictor> eviction_timer_; |
| 134 base::RepeatingTimer<QuotaTemporaryStorageEvictor> histogram_timer_; | 133 base::RepeatingTimer<QuotaTemporaryStorageEvictor> histogram_timer_; |
| 135 | |
| 136 base::ScopedCallbackFactory<QuotaTemporaryStorageEvictor> callback_factory_; | |
| 137 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_; | 134 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_; |
| 138 | 135 |
| 139 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor); | 136 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor); |
| 140 }; | 137 }; |
| 141 | 138 |
| 142 } // namespace quota | 139 } // namespace quota |
| 143 | 140 |
| 144 #endif // WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ | 141 #endif // WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ |
| OLD | NEW |