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 "base/memory/scoped_ptr.h" |
9 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
10 #include "storage/browser/fileapi/file_system_operation_runner.h" | 11 #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/open_file_handle.h" |
12 #include "storage/browser/fileapi/quota/quota_reservation.h" | 13 #include "storage/browser/fileapi/quota/quota_reservation.h" |
13 #include "storage/common/fileapi/file_system_util.h" | 14 #include "storage/common/fileapi/file_system_util.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 | 17 |
17 // static | 18 // static |
18 scoped_refptr<QuotaReservation> QuotaReservation::Create( | 19 scoped_refptr<QuotaReservation> QuotaReservation::Create( |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 ->RunsTasksOnCurrentThread()) { | 136 ->RunsTasksOnCurrentThread()) { |
136 file_system_context_->default_file_task_runner()->DeleteSoon(FROM_HERE, | 137 file_system_context_->default_file_task_runner()->DeleteSoon(FROM_HERE, |
137 this); | 138 this); |
138 } else { | 139 } else { |
139 // We're on the right thread to delete, or unit test. | 140 // We're on the right thread to delete, or unit test. |
140 delete this; | 141 delete this; |
141 } | 142 } |
142 } | 143 } |
143 | 144 |
144 } // namespace content | 145 } // namespace content |
OLD | NEW |