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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 int64 new_quota, | 195 int64 new_quota, |
196 const QuotaCallback& callback); | 196 const QuotaCallback& callback); |
197 void GetGlobalUsage(StorageType type, const GlobalUsageCallback& callback); | 197 void GetGlobalUsage(StorageType type, const GlobalUsageCallback& callback); |
198 void GetHostUsage(const std::string& host, StorageType type, | 198 void GetHostUsage(const std::string& host, StorageType type, |
199 const UsageCallback& callback); | 199 const UsageCallback& callback); |
200 | 200 |
201 void GetStatistics(std::map<std::string, std::string>* statistics); | 201 void GetStatistics(std::map<std::string, std::string>* statistics); |
202 | 202 |
203 bool IsStorageUnlimited(const GURL& origin, StorageType type) const; | 203 bool IsStorageUnlimited(const GURL& origin, StorageType type) const; |
204 | 204 |
205 bool IsInstalledApp(const GURL& origin) const { | 205 bool CanQueryDiskSize(const GURL& origin) const { |
206 return special_storage_policy_.get() && | 206 return special_storage_policy_.get() && |
207 special_storage_policy_->IsInstalledApp(origin); | 207 special_storage_policy_->CanQueryDiskSize(origin); |
208 } | 208 } |
209 | 209 |
210 virtual void GetOriginsModifiedSince(StorageType type, | 210 virtual void GetOriginsModifiedSince(StorageType type, |
211 base::Time modified_since, | 211 base::Time modified_since, |
212 const GetOriginsCallback& callback); | 212 const GetOriginsCallback& callback); |
213 | 213 |
214 bool ResetUsageTracker(StorageType type); | 214 bool ResetUsageTracker(StorageType type); |
215 | 215 |
216 // Determines the portion of the temp pool that can be | 216 // Determines the portion of the temp pool that can be |
217 // utilized by a single host (ie. 5 for 20%). | 217 // utilized by a single host (ie. 5 for 20%). |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 | 467 |
468 QuotaManager* manager_; // only accessed on the io thread | 468 QuotaManager* manager_; // only accessed on the io thread |
469 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; | 469 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; |
470 | 470 |
471 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); | 471 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); |
472 }; | 472 }; |
473 | 473 |
474 } // namespace quota | 474 } // namespace quota |
475 | 475 |
476 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ | 476 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
OLD | NEW |