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 "content/browser/renderer_host/pepper/quota_reservation.h" | 5 #include "content/browser/renderer_host/pepper/quota_reservation.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 10 #include "storage/browser/fileapi/file_system_operation_runner.h" |
| 11 #include "storage/browser/fileapi/quota/open_file_handle.h" |
| 12 #include "storage/browser/fileapi/quota/quota_reservation.h" |
10 #include "storage/common/fileapi/file_system_util.h" | 13 #include "storage/common/fileapi/file_system_util.h" |
11 #include "webkit/browser/fileapi/file_system_operation_runner.h" | |
12 #include "webkit/browser/fileapi/quota/open_file_handle.h" | |
13 #include "webkit/browser/fileapi/quota/quota_reservation.h" | |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 // static | 17 // static |
18 scoped_refptr<QuotaReservation> QuotaReservation::Create( | 18 scoped_refptr<QuotaReservation> QuotaReservation::Create( |
19 scoped_refptr<storage::FileSystemContext> file_system_context, | 19 scoped_refptr<storage::FileSystemContext> file_system_context, |
20 const GURL& origin_url, | 20 const GURL& origin_url, |
21 storage::FileSystemType type) { | 21 storage::FileSystemType type) { |
22 return scoped_refptr<QuotaReservation>( | 22 return scoped_refptr<QuotaReservation>( |
23 new QuotaReservation(file_system_context, origin_url, type)); | 23 new QuotaReservation(file_system_context, origin_url, type)); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 ->RunsTasksOnCurrentThread()) { | 135 ->RunsTasksOnCurrentThread()) { |
136 file_system_context_->default_file_task_runner()->DeleteSoon(FROM_HERE, | 136 file_system_context_->default_file_task_runner()->DeleteSoon(FROM_HERE, |
137 this); | 137 this); |
138 } else { | 138 } else { |
139 // We're on the right thread to delete, or unit test. | 139 // We're on the right thread to delete, or unit test. |
140 delete this; | 140 delete this; |
141 } | 141 } |
142 } | 142 } |
143 | 143 |
144 } // namespace content | 144 } // namespace content |
OLD | NEW |