| 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 WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 5 #ifndef WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
| 6 #define WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 6 #define WEBKIT_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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 const QuotaCallback& callback); | 197 const QuotaCallback& callback); |
| 198 | 198 |
| 199 void GetPersistentHostQuota(const std::string& host, | 199 void GetPersistentHostQuota(const std::string& host, |
| 200 const QuotaCallback& callback); | 200 const QuotaCallback& callback); |
| 201 void SetPersistentHostQuota(const std::string& host, | 201 void SetPersistentHostQuota(const std::string& host, |
| 202 int64 new_quota, | 202 int64 new_quota, |
| 203 const QuotaCallback& callback); | 203 const QuotaCallback& callback); |
| 204 void GetGlobalUsage(StorageType type, const GlobalUsageCallback& callback); | 204 void GetGlobalUsage(StorageType type, const GlobalUsageCallback& callback); |
| 205 void GetHostUsage(const std::string& host, StorageType type, | 205 void GetHostUsage(const std::string& host, StorageType type, |
| 206 const UsageCallback& callback); | 206 const UsageCallback& callback); |
| 207 void GetHostUsage(const std::string& host, StorageType type, |
| 208 QuotaClient::ID client_id, |
| 209 const UsageCallback& callback); |
| 210 |
| 211 bool IsTrackingHostUsage(StorageType type, QuotaClient::ID client_id) const; |
| 207 | 212 |
| 208 void GetStatistics(std::map<std::string, std::string>* statistics); | 213 void GetStatistics(std::map<std::string, std::string>* statistics); |
| 209 | 214 |
| 210 bool IsStorageUnlimited(const GURL& origin, StorageType type) const; | 215 bool IsStorageUnlimited(const GURL& origin, StorageType type) const; |
| 211 | 216 |
| 212 bool CanQueryDiskSize(const GURL& origin) const { | 217 bool CanQueryDiskSize(const GURL& origin) const { |
| 213 return special_storage_policy_.get() && | 218 return special_storage_policy_.get() && |
| 214 special_storage_policy_->CanQueryDiskSize(origin); | 219 special_storage_policy_->CanQueryDiskSize(origin); |
| 215 } | 220 } |
| 216 | 221 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 | 467 |
| 463 QuotaManager* manager_; // only accessed on the io thread | 468 QuotaManager* manager_; // only accessed on the io thread |
| 464 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; | 469 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; |
| 465 | 470 |
| 466 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); | 471 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); |
| 467 }; | 472 }; |
| 468 | 473 |
| 469 } // namespace quota | 474 } // namespace quota |
| 470 | 475 |
| 471 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 476 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
| OLD | NEW |