OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MANAGER_H_ | 5 #ifndef WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
6 #define WEBKIT_QUOTA_QUOTA_MANAGER_H_ | 6 #define WEBKIT_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 30 matching lines...) Expand all Loading... |
41 class MockQuotaManager; | 41 class MockQuotaManager; |
42 class QuotaDatabase; | 42 class QuotaDatabase; |
43 class QuotaManagerProxy; | 43 class QuotaManagerProxy; |
44 class QuotaTemporaryStorageEvictor; | 44 class QuotaTemporaryStorageEvictor; |
45 class UsageTracker; | 45 class UsageTracker; |
46 | 46 |
47 struct QuotaManagerDeleter; | 47 struct QuotaManagerDeleter; |
48 | 48 |
49 struct WEBKIT_STORAGE_EXPORT UsageAndQuota { | 49 struct WEBKIT_STORAGE_EXPORT UsageAndQuota { |
50 int64 usage; | 50 int64 usage; |
51 int64 global_usage; | 51 int64 global_limited_usage; |
52 int64 global_unlimited_usage; | |
53 int64 quota; | 52 int64 quota; |
54 int64 available_disk_space; | 53 int64 available_disk_space; |
55 | 54 |
56 UsageAndQuota(); | 55 UsageAndQuota(); |
57 UsageAndQuota(int64 usage, | 56 UsageAndQuota(int64 usage, |
58 int64 global_usage, | 57 int64 global_limited_usage, |
59 int64 global_unlimited_usage, | |
60 int64 quota, | 58 int64 quota, |
61 int64 available_disk_space); | 59 int64 available_disk_space); |
62 }; | 60 }; |
63 | 61 |
64 // An interface called by QuotaTemporaryStorageEvictor. | 62 // An interface called by QuotaTemporaryStorageEvictor. |
65 class WEBKIT_STORAGE_EXPORT QuotaEvictionHandler { | 63 class WEBKIT_STORAGE_EXPORT QuotaEvictionHandler { |
66 public: | 64 public: |
67 typedef base::Callback<void(const GURL&)> GetLRUOriginCallback; | 65 typedef base::Callback<void(const GURL&)> GetLRUOriginCallback; |
68 typedef StatusCallback EvictOriginDataCallback; | 66 typedef StatusCallback EvictOriginDataCallback; |
69 typedef base::Callback<void(QuotaStatusCode status, | 67 typedef base::Callback<void(QuotaStatusCode status, |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 | 461 |
464 QuotaManager* manager_; // only accessed on the io thread | 462 QuotaManager* manager_; // only accessed on the io thread |
465 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; | 463 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; |
466 | 464 |
467 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); | 465 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); |
468 }; | 466 }; |
469 | 467 |
470 } // namespace quota | 468 } // namespace quota |
471 | 469 |
472 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ | 470 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
OLD | NEW |