Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Unified Diff: webkit/browser/fileapi/quota/quota_reservation_manager.cc

Issue 61593002: Quota: Implement QuotaBackendImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698