| 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/weak_ptr.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 { | |
| 20 class MessageLoopProxy; | |
| 21 } | |
| 22 | |
| 23 namespace quota { | 19 namespace quota { |
| 24 | 20 |
| 25 class QuotaEvictionHandler; | 21 class QuotaEvictionHandler; |
| 26 struct QuotaAndUsage; | 22 struct QuotaAndUsage; |
| 27 | 23 |
| 28 class QuotaTemporaryStorageEvictor : public base::NonThreadSafe { | 24 class QuotaTemporaryStorageEvictor : public base::NonThreadSafe { |
| 29 public: | 25 public: |
| 30 struct Statistics { | 26 struct Statistics { |
| 31 Statistics() | 27 Statistics() |
| 32 : num_errors_on_evicting_origin(0), | 28 : num_errors_on_evicting_origin(0), |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 base::OneShotTimer<QuotaTemporaryStorageEvictor> eviction_timer_; | 128 base::OneShotTimer<QuotaTemporaryStorageEvictor> eviction_timer_; |
| 133 base::RepeatingTimer<QuotaTemporaryStorageEvictor> histogram_timer_; | 129 base::RepeatingTimer<QuotaTemporaryStorageEvictor> histogram_timer_; |
| 134 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_; | 130 base::WeakPtrFactory<QuotaTemporaryStorageEvictor> weak_factory_; |
| 135 | 131 |
| 136 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor); | 132 DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor); |
| 137 }; | 133 }; |
| 138 | 134 |
| 139 } // namespace quota | 135 } // namespace quota |
| 140 | 136 |
| 141 #endif // WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ | 137 #endif // WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_ |
| OLD | NEW |