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 "storage/browser/fileapi/quota/quota_reservation_manager.h" | 5 #include "storage/browser/fileapi/quota/quota_reservation_manager.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "storage/browser/fileapi/quota/quota_reservation.h" | 10 #include "storage/browser/fileapi/quota/quota_reservation.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 std::pair<GURL, FileSystemType> key(reservation_buffer->origin(), | 78 std::pair<GURL, FileSystemType> key(reservation_buffer->origin(), |
79 reservation_buffer->type()); | 79 reservation_buffer->type()); |
80 DCHECK_EQ(reservation_buffers_[key], reservation_buffer); | 80 DCHECK_EQ(reservation_buffers_[key], reservation_buffer); |
81 reservation_buffers_.erase(key); | 81 reservation_buffers_.erase(key); |
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 |