| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
| 6 #define STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 6 #define STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 static const int64 kPerHostPersistentQuotaLimit; | 271 static const int64 kPerHostPersistentQuotaLimit; |
| 272 | 272 |
| 273 static const char kDatabaseName[]; | 273 static const char kDatabaseName[]; |
| 274 | 274 |
| 275 static const int kThresholdOfErrorsToBeBlacklisted; | 275 static const int kThresholdOfErrorsToBeBlacklisted; |
| 276 | 276 |
| 277 static const int kEvictionIntervalInMilliSeconds; | 277 static const int kEvictionIntervalInMilliSeconds; |
| 278 | 278 |
| 279 static const char kTimeBetweenRepeatedOriginEvictionsHistogram[]; | 279 static const char kTimeBetweenRepeatedOriginEvictionsHistogram[]; |
| 280 static const char kEvictedOriginAccessedCountHistogram[]; |
| 281 static const char kEvictedOriginTimeSinceAccessHistogram[]; |
| 280 | 282 |
| 281 // These are kept non-const so that test code can change the value. | 283 // These are kept non-const so that test code can change the value. |
| 282 // TODO(kinuko): Make this a real const value and add a proper way to set | 284 // TODO(kinuko): Make this a real const value and add a proper way to set |
| 283 // the quota for syncable storage. (http://crbug.com/155488) | 285 // the quota for syncable storage. (http://crbug.com/155488) |
| 284 static int64 kMinimumPreserveForSystem; | 286 static int64 kMinimumPreserveForSystem; |
| 285 static int64 kSyncableStorageDefaultHostQuota; | 287 static int64 kSyncableStorageDefaultHostQuota; |
| 286 | 288 |
| 287 protected: | 289 protected: |
| 288 ~QuotaManager() override; | 290 ~QuotaManager() override; |
| 289 | 291 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 498 |
| 497 struct QuotaManagerDeleter { | 499 struct QuotaManagerDeleter { |
| 498 static void Destruct(const QuotaManager* manager) { | 500 static void Destruct(const QuotaManager* manager) { |
| 499 manager->DeleteOnCorrectThread(); | 501 manager->DeleteOnCorrectThread(); |
| 500 } | 502 } |
| 501 }; | 503 }; |
| 502 | 504 |
| 503 } // namespace storage | 505 } // namespace storage |
| 504 | 506 |
| 505 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 507 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
| OLD | NEW |