| 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" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "webkit/quota/quota_types.h" | 15 #include "webkit/quota/quota_types.h" |
| 16 | 16 |
| 17 class GURL; | 17 class GURL; |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class MessageLoopProxy; | 20 class MessageLoopProxy; |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 EvictionRoundStatistics round_statistics_; | 119 EvictionRoundStatistics round_statistics_; |
| 120 base::Time time_of_end_of_last_nonskipped_round_; | 120 base::Time time_of_end_of_last_nonskipped_round_; |
| 121 base::Time time_of_end_of_last_round_; | 121 base::Time time_of_end_of_last_round_; |
| 122 | 122 |
| 123 int64 interval_ms_; | 123 int64 interval_ms_; |
| 124 bool repeated_eviction_; | 124 bool repeated_eviction_; |
| 125 | 125 |
| 126 base::OneShotTimer<QuotaTemporaryStorageEvictor> eviction_timer_; | 126 base::OneShotTimer<QuotaTemporaryStorageEvictor> eviction_timer_; |
| 127 base::RepeatingTimer<QuotaTemporaryStorageEvictor> histogram_timer_; | 127 base::RepeatingTimer<QuotaTemporaryStorageEvictor> histogram_timer_; |
| 128 | 128 |
| 129 base::ScopedCallbackFactory<QuotaTemporaryStorageEvictor> callback_factory_; | 129 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_; |
| 130 | 130 |
| 131 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor); | 131 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace quota | 134 } // namespace quota |
| 135 | 135 |
| 136 #endif // WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ | 136 #endif // WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ |
| OLD | NEW |