OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/fileapi/async_file_util_adapter.h" | 5 #include "webkit/fileapi/async_file_util_adapter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/task/sequenced_task_runner.h" | 8 #include "base/sequenced_task_runner.h" |
9 #include "base/task_runner_util.h" | 9 #include "base/task_runner_util.h" |
10 #include "webkit/blob/shareable_file_reference.h" | 10 #include "webkit/blob/shareable_file_reference.h" |
11 #include "webkit/fileapi/file_system_context.h" | 11 #include "webkit/fileapi/file_system_context.h" |
12 #include "webkit/fileapi/file_system_file_util.h" | 12 #include "webkit/fileapi/file_system_file_util.h" |
13 #include "webkit/fileapi/file_system_operation_context.h" | 13 #include "webkit/fileapi/file_system_operation_context.h" |
14 #include "webkit/fileapi/file_system_url.h" | 14 #include "webkit/fileapi/file_system_url.h" |
15 #include "webkit/fileapi/file_system_util.h" | 15 #include "webkit/fileapi/file_system_util.h" |
16 | 16 |
17 using base::Bind; | 17 using base::Bind; |
18 using base::Callback; | 18 using base::Callback; |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 const CreateSnapshotFileCallback& callback) { | 298 const CreateSnapshotFileCallback& callback) { |
299 GetFileInfoHelper* helper = new GetFileInfoHelper; | 299 GetFileInfoHelper* helper = new GetFileInfoHelper; |
300 return context->task_runner()->PostTaskAndReply( | 300 return context->task_runner()->PostTaskAndReply( |
301 FROM_HERE, | 301 FROM_HERE, |
302 Bind(&GetFileInfoHelper::CreateSnapshotFile, Unretained(helper), | 302 Bind(&GetFileInfoHelper::CreateSnapshotFile, Unretained(helper), |
303 sync_file_util_.get(), context, url), | 303 sync_file_util_.get(), context, url), |
304 Bind(&GetFileInfoHelper::ReplySnapshotFile, Owned(helper), callback)); | 304 Bind(&GetFileInfoHelper::ReplySnapshotFile, Owned(helper), callback)); |
305 } | 305 } |
306 | 306 |
307 } // namespace fileapi | 307 } // namespace fileapi |
OLD | NEW |