OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/browser/fileapi/quota/quota_reservation_manager.h" | 5 #include "storage/browser/fileapi/quota/quota_reservation_manager.h" |
6 | 6 |
7 #include "webkit/browser/fileapi/quota/quota_reservation.h" | 7 #include "storage/browser/fileapi/quota/quota_reservation.h" |
8 #include "webkit/browser/fileapi/quota/quota_reservation_buffer.h" | 8 #include "storage/browser/fileapi/quota/quota_reservation_buffer.h" |
9 | 9 |
10 namespace storage { | 10 namespace storage { |
11 | 11 |
12 QuotaReservationManager::QuotaReservationManager( | 12 QuotaReservationManager::QuotaReservationManager( |
13 scoped_ptr<QuotaBackend> backend) | 13 scoped_ptr<QuotaBackend> backend) |
14 : backend_(backend.Pass()), | 14 : backend_(backend.Pass()), |
15 weak_ptr_factory_(this) { | 15 weak_ptr_factory_(this) { |
16 sequence_checker_.DetachFromSequence(); | 16 sequence_checker_.DetachFromSequence(); |
17 } | 17 } |
18 | 18 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 | 83 |
84 scoped_refptr<QuotaReservation> QuotaReservationManager::CreateReservation( | 84 scoped_refptr<QuotaReservation> QuotaReservationManager::CreateReservation( |
85 const GURL& origin, | 85 const GURL& origin, |
86 FileSystemType type) { | 86 FileSystemType type) { |
87 DCHECK(origin.is_valid()); | 87 DCHECK(origin.is_valid()); |
88 return GetReservationBuffer(origin, type)->CreateReservation();; | 88 return GetReservationBuffer(origin, type)->CreateReservation();; |
89 } | 89 } |
90 | 90 |
91 } // namespace storage | 91 } // namespace storage |
OLD | NEW |