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

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: 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_buffer.cc
diff --git a/webkit/browser/fileapi/quota/quota_reservation_buffer.cc b/webkit/browser/fileapi/quota/quota_reservation_buffer.cc
index c83073eaca2a9f53864e1b5f6c8f28c5cfce667e..4a4e0368af6cd6d1aea8b2f4c6b1964c95ae459d 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() {
@@ -49,10 +49,7 @@ void QuotaReservationBuffer::CommitFileGrowth(int64 quota_consumption,
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
if (!reservation_manager_)
return;
-
- reservation_manager_->CommitQuotaUsage(
- origin_, type_, usage_delta,
- base::Bind(&IgnoreResult));
+ reservation_manager_->CommitQuotaUsage(origin_, type_, usage_delta);
DCHECK_LE(quota_consumption, reserved_quota_);
if (quota_consumption > 0) {
@@ -84,20 +81,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;
« no previous file with comments | « webkit/browser/fileapi/quota/quota_reservation_buffer.h ('k') | webkit/browser/fileapi/quota/quota_reservation_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698