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

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

Issue 61593002: Quota: Implement QuotaBackendImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build and test 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_buffer.cc
diff --git a/webkit/browser/fileapi/quota/quota_reservation_buffer.cc b/webkit/browser/fileapi/quota/quota_reservation_buffer.cc
index c83073eaca2a9f53864e1b5f6c8f28c5cfce667e..7dc1e1dfcb36d4ae184743024488cc766d8ebbc4 100644
--- a/webkit/browser/fileapi/quota/quota_reservation_buffer.cc
+++ b/webkit/browser/fileapi/quota/quota_reservation_buffer.cc
@@ -26,7 +26,7 @@ QuotaReservationBuffer::QuotaReservationBuffer(
type_(type),
reserved_quota_(0) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
- reservation_manager_->IncreaseDirtyCount(origin, type);
+ reservation_manager_->IncrementDirtyCount(origin, type);
}
scoped_refptr<QuotaReservation> QuotaReservationBuffer::CreateReservation() {
@@ -84,20 +84,20 @@ QuotaReservationBuffer::~QuotaReservationBuffer() {
if (reserved_quota_ && reservation_manager_) {
reservation_manager_->ReserveQuota(
origin_, type_, -reserved_quota_,
- base::Bind(&QuotaReservationBuffer::DecreaseDirtyCount,
+ base::Bind(&QuotaReservationBuffer::DecrementDirtyCount,
reservation_manager_, origin_, type_));
}
reservation_manager_->ReleaseReservationBuffer(this);
}
// static
-bool QuotaReservationBuffer::DecreaseDirtyCount(
+bool QuotaReservationBuffer::DecrementDirtyCount(
base::WeakPtr<QuotaReservationManager> reservation_manager,
const GURL& origin,
FileSystemType type,
base::PlatformFileError error) {
if (error == base::PLATFORM_FILE_OK && reservation_manager) {
- reservation_manager->DecreaseDirtyCount(origin, type);
+ reservation_manager->DecrementDirtyCount(origin, type);
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698