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

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

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 months 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: storage/browser/fileapi/quota/quota_reservation_manager.cc
diff --git a/webkit/browser/fileapi/quota/quota_reservation_manager.cc b/storage/browser/fileapi/quota/quota_reservation_manager.cc
similarity index 68%
rename from webkit/browser/fileapi/quota/quota_reservation_manager.cc
rename to storage/browser/fileapi/quota/quota_reservation_manager.cc
index efb54b2225b70f4e6b248420bf838ce0675bff22..77ecf876bb456997aea53d4603a04e7ae79abf38 100644
--- a/webkit/browser/fileapi/quota/quota_reservation_manager.cc
+++ b/storage/browser/fileapi/quota/quota_reservation_manager.cc
@@ -2,17 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/browser/fileapi/quota/quota_reservation_manager.h"
+#include "storage/browser/fileapi/quota/quota_reservation_manager.h"
-#include "webkit/browser/fileapi/quota/quota_reservation.h"
-#include "webkit/browser/fileapi/quota/quota_reservation_buffer.h"
+#include "storage/browser/fileapi/quota/quota_reservation.h"
+#include "storage/browser/fileapi/quota/quota_reservation_buffer.h"
-namespace fileapi {
+namespace storage {
QuotaReservationManager::QuotaReservationManager(
scoped_ptr<QuotaBackend> backend)
- : backend_(backend.Pass()),
- weak_ptr_factory_(this) {
+ : backend_(backend.Pass()), weak_ptr_factory_(this) {
sequence_checker_.DetachFromSequence();
}
@@ -29,38 +28,35 @@ void QuotaReservationManager::ReserveQuota(
backend_->ReserveQuota(origin, type, size, callback);
}
-void QuotaReservationManager::ReleaseReservedQuota(
- const GURL& origin,
- FileSystemType type,
- int64 size) {
+void QuotaReservationManager::ReleaseReservedQuota(const GURL& origin,
+ FileSystemType type,
+ int64 size) {
DCHECK(origin.is_valid());
backend_->ReleaseReservedQuota(origin, type, size);
}
-void QuotaReservationManager::CommitQuotaUsage(
- const GURL& origin,
- FileSystemType type,
- int64 delta) {
+void QuotaReservationManager::CommitQuotaUsage(const GURL& origin,
+ FileSystemType type,
+ int64 delta) {
DCHECK(origin.is_valid());
backend_->CommitQuotaUsage(origin, type, delta);
}
void QuotaReservationManager::IncrementDirtyCount(const GURL& origin,
- FileSystemType type) {
+ FileSystemType type) {
DCHECK(origin.is_valid());
backend_->IncrementDirtyCount(origin, type);
}
void QuotaReservationManager::DecrementDirtyCount(const GURL& origin,
- FileSystemType type) {
+ FileSystemType type) {
DCHECK(origin.is_valid());
backend_->DecrementDirtyCount(origin, type);
}
scoped_refptr<QuotaReservationBuffer>
-QuotaReservationManager::GetReservationBuffer(
- const GURL& origin,
- FileSystemType type) {
+QuotaReservationManager::GetReservationBuffer(const GURL& origin,
+ FileSystemType type) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
DCHECK(origin.is_valid());
QuotaReservationBuffer** buffer =
@@ -85,7 +81,8 @@ scoped_refptr<QuotaReservation> QuotaReservationManager::CreateReservation(
const GURL& origin,
FileSystemType type) {
DCHECK(origin.is_valid());
- return GetReservationBuffer(origin, type)->CreateReservation();;
+ return GetReservationBuffer(origin, type)->CreateReservation();
+ ;
}
-} // namespace fileapi
+} // namespace storage
« no previous file with comments | « storage/browser/fileapi/quota/quota_reservation_manager.h ('k') | storage/browser/fileapi/recursive_operation_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698