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_buffer.h" | 5 #include "storage/browser/fileapi/quota/quota_reservation_buffer.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "webkit/browser/fileapi/quota/open_file_handle.h" | 8 #include "storage/browser/fileapi/quota/open_file_handle.h" |
9 #include "webkit/browser/fileapi/quota/open_file_handle_context.h" | 9 #include "storage/browser/fileapi/quota/open_file_handle_context.h" |
10 #include "webkit/browser/fileapi/quota/quota_reservation.h" | 10 #include "storage/browser/fileapi/quota/quota_reservation.h" |
11 | 11 |
12 namespace storage { | 12 namespace storage { |
13 | 13 |
14 QuotaReservationBuffer::QuotaReservationBuffer( | 14 QuotaReservationBuffer::QuotaReservationBuffer( |
15 base::WeakPtr<QuotaReservationManager> reservation_manager, | 15 base::WeakPtr<QuotaReservationManager> reservation_manager, |
16 const GURL& origin, | 16 const GURL& origin, |
17 FileSystemType type) | 17 FileSystemType type) |
18 : reservation_manager_(reservation_manager), | 18 : reservation_manager_(reservation_manager), |
19 origin_(origin), | 19 origin_(origin), |
20 type_(type), | 20 type_(type), |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 int64 delta_unused) { | 96 int64 delta_unused) { |
97 DCHECK(origin.is_valid()); | 97 DCHECK(origin.is_valid()); |
98 if (error == base::File::FILE_OK && reservation_manager) { | 98 if (error == base::File::FILE_OK && reservation_manager) { |
99 reservation_manager->DecrementDirtyCount(origin, type); | 99 reservation_manager->DecrementDirtyCount(origin, type); |
100 return true; | 100 return true; |
101 } | 101 } |
102 return false; | 102 return false; |
103 } | 103 } |
104 | 104 |
105 } // namespace storage | 105 } // namespace storage |
OLD | NEW |