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 CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/message_loop_proxy.h" | 14 #include "base/message_loop_proxy.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 #include "webkit/quota/quota_types.h" | 17 #include "webkit/quota/quota_types.h" |
18 | 18 |
| 19 class BrowsingDataQuotaHelper; |
19 class Profile; | 20 class Profile; |
20 | 21 |
21 namespace quota { | |
22 class QuotaManager; | |
23 } | |
24 | |
25 class BrowsingDataQuotaHelper; | |
26 | |
27 struct BrowsingDataQuotaHelperDeleter { | 22 struct BrowsingDataQuotaHelperDeleter { |
28 static void Destruct(const BrowsingDataQuotaHelper* helper); | 23 static void Destruct(const BrowsingDataQuotaHelper* helper); |
29 }; | 24 }; |
30 | 25 |
31 // This class is an interface class to bridge between Cookies Tree and Unified | 26 // This class is an interface class to bridge between Cookies Tree and Unified |
32 // Quota System. This class provides a way to get usage and quota information | 27 // Quota System. This class provides a way to get usage and quota information |
33 // through the instance. | 28 // through the instance. |
34 // | 29 // |
35 // Call Create to create an instance for a profile and call StartFetching with | 30 // Call Create to create an instance for a profile and call StartFetching with |
36 // a callback to fetch information asynchronously. If result is no longer needed | 31 // a callback to fetch information asynchronously. If result is no longer needed |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 73 |
79 DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelper); | 74 DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelper); |
80 }; | 75 }; |
81 | 76 |
82 bool operator <(const BrowsingDataQuotaHelper::QuotaInfo& lhs, | 77 bool operator <(const BrowsingDataQuotaHelper::QuotaInfo& lhs, |
83 const BrowsingDataQuotaHelper::QuotaInfo& rhs); | 78 const BrowsingDataQuotaHelper::QuotaInfo& rhs); |
84 bool operator ==(const BrowsingDataQuotaHelper::QuotaInfo& lhs, | 79 bool operator ==(const BrowsingDataQuotaHelper::QuotaInfo& lhs, |
85 const BrowsingDataQuotaHelper::QuotaInfo& rhs); | 80 const BrowsingDataQuotaHelper::QuotaInfo& rhs); |
86 | 81 |
87 #endif // CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_H_ | 82 #endif // CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_H_ |
OLD | NEW |