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

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

Issue 64883003: Revert 233815 "Quota: Implement QuotaBackendImpl" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/webkit/browser/fileapi/quota/quota_reservation_manager.cc
===================================================================
--- trunk/src/webkit/browser/fileapi/quota/quota_reservation_manager.cc (revision 233827)
+++ trunk/src/webkit/browser/fileapi/quota/quota_reservation_manager.cc (working copy)
@@ -9,9 +9,8 @@
namespace fileapi {
-QuotaReservationManager::QuotaReservationManager(
- scoped_ptr<QuotaBackend> backend)
- : backend_(backend.Pass()),
+QuotaReservationManager::QuotaReservationManager(QuotaBackend* backend)
+ : backend_(backend),
weak_ptr_factory_(this) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
}
@@ -38,18 +37,19 @@
void QuotaReservationManager::CommitQuotaUsage(
const GURL& origin,
FileSystemType type,
- int64 delta) {
- backend_->CommitQuotaUsage(origin, type, delta);
+ int64 delta,
+ const StatusCallback& callback) {
+ backend_->CommitQuotaUsage(origin, type, delta, callback);
}
-void QuotaReservationManager::IncrementDirtyCount(const GURL& origin,
+void QuotaReservationManager::IncreaseDirtyCount(const GURL& origin,
FileSystemType type) {
- backend_->IncrementDirtyCount(origin, type);
+ backend_->IncreaseDirtyCount(origin, type);
}
-void QuotaReservationManager::DecrementDirtyCount(const GURL& origin,
+void QuotaReservationManager::DecreaseDirtyCount(const GURL& origin,
FileSystemType type) {
- backend_->DecrementDirtyCount(origin, type);
+ backend_->DecreaseDirtyCount(origin, type);
}
scoped_refptr<QuotaReservationBuffer>

Powered by Google App Engine
This is Rietveld 408576698