| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 void DumpQuotaTable(const DumpQuotaTableCallback& callback); | 320 void DumpQuotaTable(const DumpQuotaTableCallback& callback); |
| 321 void DumpOriginInfoTable(const DumpOriginInfoTableCallback& callback); | 321 void DumpOriginInfoTable(const DumpOriginInfoTableCallback& callback); |
| 322 | 322 |
| 323 // Methods for eviction logic. | 323 // Methods for eviction logic. |
| 324 void StartEviction(); | 324 void StartEviction(); |
| 325 void DeleteOriginFromDatabase(const GURL& origin, StorageType type); | 325 void DeleteOriginFromDatabase(const GURL& origin, StorageType type); |
| 326 | 326 |
| 327 void DidOriginDataEvicted(QuotaStatusCode status); | 327 void DidOriginDataEvicted(QuotaStatusCode status); |
| 328 | 328 |
| 329 void ReportHistogram(); | 329 void ReportHistogram(); |
| 330 void DidGetTemporaryGlobalUsageForHistogram(StorageType type, | 330 void DidGetTemporaryGlobalUsageForHistogram(int64 usage, |
| 331 int64 usage, | |
| 332 int64 unlimited_usage); | 331 int64 unlimited_usage); |
| 333 void DidGetPersistentGlobalUsageForHistogram(StorageType type, | 332 void DidGetPersistentGlobalUsageForHistogram(int64 usage, |
| 334 int64 usage, | |
| 335 int64 unlimited_usage); | 333 int64 unlimited_usage); |
| 336 | 334 |
| 337 // QuotaEvictionHandler. | 335 // QuotaEvictionHandler. |
| 338 virtual void GetLRUOrigin( | 336 virtual void GetLRUOrigin( |
| 339 StorageType type, | 337 StorageType type, |
| 340 const GetLRUOriginCallback& callback) OVERRIDE; | 338 const GetLRUOriginCallback& callback) OVERRIDE; |
| 341 virtual void EvictOriginData( | 339 virtual void EvictOriginData( |
| 342 const GURL& origin, | 340 const GURL& origin, |
| 343 StorageType type, | 341 StorageType type, |
| 344 const EvictOriginDataCallback& callback) OVERRIDE; | 342 const EvictOriginDataCallback& callback) OVERRIDE; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 463 |
| 466 QuotaManager* manager_; // only accessed on the io thread | 464 QuotaManager* manager_; // only accessed on the io thread |
| 467 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; | 465 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; |
| 468 | 466 |
| 469 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); | 467 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); |
| 470 }; | 468 }; |
| 471 | 469 |
| 472 } // namespace quota | 470 } // namespace quota |
| 473 | 471 |
| 474 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ | 472 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
| OLD | NEW |