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, const UsageCallback& callback); | |
kinuko
2013/09/23 21:41:05
style-nit: please break lines after 'client_id,' (
SeRya
2013/09/24 09:55:15
Done.
| |
209 | |
210 bool IsTrackingHostUsage(StorageType type, QuotaClient::ID client_id) const; | |
207 | 211 |
208 void GetStatistics(std::map<std::string, std::string>* statistics); | 212 void GetStatistics(std::map<std::string, std::string>* statistics); |
209 | 213 |
210 bool IsStorageUnlimited(const GURL& origin, StorageType type) const; | 214 bool IsStorageUnlimited(const GURL& origin, StorageType type) const; |
211 | 215 |
212 bool CanQueryDiskSize(const GURL& origin) const { | 216 bool CanQueryDiskSize(const GURL& origin) const { |
213 return special_storage_policy_.get() && | 217 return special_storage_policy_.get() && |
214 special_storage_policy_->CanQueryDiskSize(origin); | 218 special_storage_policy_->CanQueryDiskSize(origin); |
215 } | 219 } |
216 | 220 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
462 | 466 |
463 QuotaManager* manager_; // only accessed on the io thread | 467 QuotaManager* manager_; // only accessed on the io thread |
464 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; | 468 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; |
465 | 469 |
466 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); | 470 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); |
467 }; | 471 }; |
468 | 472 |
469 } // namespace quota | 473 } // namespace quota |
470 | 474 |
471 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 475 #endif // WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
OLD | NEW |