| 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
|
|
|