| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 static const char kDatabaseName[]; | 201 static const char kDatabaseName[]; |
| 202 | 202 |
| 203 static const int kThresholdOfErrorsToBeBlacklisted; | 203 static const int kThresholdOfErrorsToBeBlacklisted; |
| 204 | 204 |
| 205 static const int kEvictionIntervalInMilliSeconds; | 205 static const int kEvictionIntervalInMilliSeconds; |
| 206 | 206 |
| 207 protected: | 207 protected: |
| 208 virtual ~QuotaManager(); | 208 virtual ~QuotaManager(); |
| 209 | 209 |
| 210 // Returns the available disk space on the disk containing the current |
| 211 // profile. Overridden by the TestQuotaManager in order to have a consistent |
| 212 // reported value. |
| 213 virtual int64 GetAvailableDiskSpace() const; |
| 214 |
| 210 private: | 215 private: |
| 211 friend class base::DeleteHelper<QuotaManager>; | 216 friend class base::DeleteHelper<QuotaManager>; |
| 212 friend class MockQuotaManager; | 217 friend class MockQuotaManager; |
| 213 friend class MockStorageClient; | 218 friend class MockStorageClient; |
| 214 friend class quota_internals::QuotaInternalsProxy; | 219 friend class quota_internals::QuotaInternalsProxy; |
| 215 friend class QuotaManagerProxy; | 220 friend class QuotaManagerProxy; |
| 216 friend class QuotaManagerTest; | 221 friend class QuotaManagerTest; |
| 217 friend class QuotaTemporaryStorageEvictor; | 222 friend class QuotaTemporaryStorageEvictor; |
| 218 friend struct QuotaManagerDeleter; | 223 friend struct QuotaManagerDeleter; |
| 219 | 224 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 430 |
| 426 QuotaManager* manager_; // only accessed on the io thread | 431 QuotaManager* manager_; // only accessed on the io thread |
| 427 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; | 432 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; |
| 428 | 433 |
| 429 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); | 434 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); |
| 430 }; | 435 }; |
| 431 | 436 |
| 432 } // namespace quota | 437 } // namespace quota |
| 433 | 438 |
| 434 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ | 439 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
| OLD | NEW |