| Index: webkit/browser/fileapi/quota/quota_reservation_manager.cc
|
| diff --git a/webkit/browser/fileapi/quota/quota_reservation_manager.cc b/webkit/browser/fileapi/quota/quota_reservation_manager.cc
|
| index 0a02940ab5a7de41707e95db35f50d16922729f4..7968b1f67109fc53d6395af0c9138ae8bab9defe 100644
|
| --- a/webkit/browser/fileapi/quota/quota_reservation_manager.cc
|
| +++ b/webkit/browser/fileapi/quota/quota_reservation_manager.cc
|
| @@ -9,8 +9,9 @@
|
|
|
| namespace fileapi {
|
|
|
| -QuotaReservationManager::QuotaReservationManager(QuotaBackend* backend)
|
| - : backend_(backend),
|
| +QuotaReservationManager::QuotaReservationManager(
|
| + scoped_ptr<QuotaBackend> backend)
|
| + : backend_(backend.Pass()),
|
| weak_ptr_factory_(this) {
|
| DCHECK(sequence_checker_.CalledOnValidSequencedThread());
|
| }
|
| @@ -37,19 +38,18 @@ void QuotaReservationManager::ReleaseReservedQuota(
|
| void QuotaReservationManager::CommitQuotaUsage(
|
| const GURL& origin,
|
| FileSystemType type,
|
| - int64 delta,
|
| - const StatusCallback& callback) {
|
| - backend_->CommitQuotaUsage(origin, type, delta, callback);
|
| + int64 delta) {
|
| + backend_->CommitQuotaUsage(origin, type, delta);
|
| }
|
|
|
| -void QuotaReservationManager::IncreaseDirtyCount(const GURL& origin,
|
| +void QuotaReservationManager::IncrementDirtyCount(const GURL& origin,
|
| FileSystemType type) {
|
| - backend_->IncreaseDirtyCount(origin, type);
|
| + backend_->IncrementDirtyCount(origin, type);
|
| }
|
|
|
| -void QuotaReservationManager::DecreaseDirtyCount(const GURL& origin,
|
| +void QuotaReservationManager::DecrementDirtyCount(const GURL& origin,
|
| FileSystemType type) {
|
| - backend_->DecreaseDirtyCount(origin, type);
|
| + backend_->DecrementDirtyCount(origin, type);
|
| }
|
|
|
| scoped_refptr<QuotaReservationBuffer>
|
|
|