| 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 STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
| 6 #define STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 6 #define STORAGE_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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 void ReportHistogram(); | 352 void ReportHistogram(); |
| 353 void DidGetTemporaryGlobalUsageForHistogram(int64 usage, | 353 void DidGetTemporaryGlobalUsageForHistogram(int64 usage, |
| 354 int64 unlimited_usage); | 354 int64 unlimited_usage); |
| 355 void DidGetPersistentGlobalUsageForHistogram(int64 usage, | 355 void DidGetPersistentGlobalUsageForHistogram(int64 usage, |
| 356 int64 unlimited_usage); | 356 int64 unlimited_usage); |
| 357 | 357 |
| 358 // QuotaEvictionHandler. | 358 // QuotaEvictionHandler. |
| 359 virtual void GetLRUOrigin( | 359 virtual void GetLRUOrigin( |
| 360 StorageType type, | 360 StorageType type, |
| 361 const GetLRUOriginCallback& callback) OVERRIDE; | 361 const GetLRUOriginCallback& callback) override; |
| 362 virtual void EvictOriginData( | 362 virtual void EvictOriginData( |
| 363 const GURL& origin, | 363 const GURL& origin, |
| 364 StorageType type, | 364 StorageType type, |
| 365 const EvictOriginDataCallback& callback) OVERRIDE; | 365 const EvictOriginDataCallback& callback) override; |
| 366 virtual void GetUsageAndQuotaForEviction( | 366 virtual void GetUsageAndQuotaForEviction( |
| 367 const UsageAndQuotaCallback& callback) OVERRIDE; | 367 const UsageAndQuotaCallback& callback) override; |
| 368 | 368 |
| 369 void DidSetTemporaryGlobalOverrideQuota(const QuotaCallback& callback, | 369 void DidSetTemporaryGlobalOverrideQuota(const QuotaCallback& callback, |
| 370 const int64* new_quota, | 370 const int64* new_quota, |
| 371 bool success); | 371 bool success); |
| 372 void DidGetPersistentHostQuota(const std::string& host, | 372 void DidGetPersistentHostQuota(const std::string& host, |
| 373 const int64* quota, | 373 const int64* quota, |
| 374 bool success); | 374 bool success); |
| 375 void DidSetPersistentHostQuota(const std::string& host, | 375 void DidSetPersistentHostQuota(const std::string& host, |
| 376 const QuotaCallback& callback, | 376 const QuotaCallback& callback, |
| 377 const int64* new_quota, | 377 const int64* new_quota, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 | 451 |
| 452 struct QuotaManagerDeleter { | 452 struct QuotaManagerDeleter { |
| 453 static void Destruct(const QuotaManager* manager) { | 453 static void Destruct(const QuotaManager* manager) { |
| 454 manager->DeleteOnCorrectThread(); | 454 manager->DeleteOnCorrectThread(); |
| 455 } | 455 } |
| 456 }; | 456 }; |
| 457 | 457 |
| 458 } // namespace storage | 458 } // namespace storage |
| 459 | 459 |
| 460 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ | 460 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ |
| OLD | NEW |