| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 void SetTemporaryGlobalOverrideQuota(int64 new_quota, | 172 void SetTemporaryGlobalOverrideQuota(int64 new_quota, |
| 173 const QuotaCallback& callback); | 173 const QuotaCallback& callback); |
| 174 | 174 |
| 175 void GetPersistentHostQuota(const std::string& host, | 175 void GetPersistentHostQuota(const std::string& host, |
| 176 const HostQuotaCallback& callback); | 176 const HostQuotaCallback& callback); |
| 177 void SetPersistentHostQuota(const std::string& host, | 177 void SetPersistentHostQuota(const std::string& host, |
| 178 int64 new_quota, | 178 int64 new_quota, |
| 179 const HostQuotaCallback& callback); | 179 const HostQuotaCallback& callback); |
| 180 void GetGlobalUsage(StorageType type, const GlobalUsageCallback& callback); | 180 void GetGlobalUsage(StorageType type, const GlobalUsageCallback& callback); |
| 181 void GetHostUsage(const std::string& host, StorageType type, | 181 void GetHostUsage(const std::string& host, StorageType type, |
| 182 const HostUsageCallback& callback); | 182 const UsageCallback& callback); |
| 183 | 183 |
| 184 void GetStatistics(std::map<std::string, std::string>* statistics); | 184 void GetStatistics(std::map<std::string, std::string>* statistics); |
| 185 | 185 |
| 186 bool IsStorageUnlimited(const GURL& origin, StorageType type) const; | 186 bool IsStorageUnlimited(const GURL& origin, StorageType type) const; |
| 187 | 187 |
| 188 bool IsInstalledApp(const GURL& origin) const { | 188 bool IsInstalledApp(const GURL& origin) const { |
| 189 return special_storage_policy_.get() && | 189 return special_storage_policy_.get() && |
| 190 special_storage_policy_->IsInstalledApp(origin); | 190 special_storage_policy_->IsInstalledApp(origin); |
| 191 } | 191 } |
| 192 | 192 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 | 446 |
| 447 QuotaManager* manager_; // only accessed on the io thread | 447 QuotaManager* manager_; // only accessed on the io thread |
| 448 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; | 448 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; |
| 449 | 449 |
| 450 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); | 450 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); |
| 451 }; | 451 }; |
| 452 | 452 |
| 453 } // namespace quota | 453 } // namespace quota |
| 454 | 454 |
| 455 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ | 455 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
| OLD | NEW |