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 "storage/browser/fileapi/async_file_util_adapter.h" | 5 #include "storage/browser/fileapi/async_file_util_adapter.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/sequenced_task_runner.h" | 16 #include "base/sequenced_task_runner.h" |
17 #include "base/task_runner_util.h" | 17 #include "base/task_runner_util.h" |
18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "storage/browser/blob/shareable_file_reference.h" | 19 #include "storage/browser/blob/shareable_file_reference.h" |
20 #include "storage/browser/fileapi/file_system_context.h" | 20 #include "storage/browser/fileapi/file_system_context.h" |
21 #include "storage/browser/fileapi/file_system_file_util.h" | 21 #include "storage/browser/fileapi/file_system_file_util.h" |
22 #include "storage/browser/fileapi/file_system_operation_context.h" | 22 #include "storage/browser/fileapi/file_system_operation_context.h" |
23 #include "storage/browser/fileapi/file_system_url.h" | 23 #include "storage/browser/fileapi/file_system_url.h" |
24 #include "storage/common/fileapi/file_system_util.h" | 24 #include "storage/common/fileapi/file_system_util.h" |
25 | 25 |
26 using base::Bind; | 26 using base::Bind; |
27 using base::Callback; | 27 using base::Callback; |
28 using base::Owned; | 28 using base::Owned; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 GetFileInfoHelper* helper = new GetFileInfoHelper; | 348 GetFileInfoHelper* helper = new GetFileInfoHelper; |
349 const bool success = context_ptr->task_runner()->PostTaskAndReply( | 349 const bool success = context_ptr->task_runner()->PostTaskAndReply( |
350 FROM_HERE, | 350 FROM_HERE, |
351 Bind(&GetFileInfoHelper::CreateSnapshotFile, Unretained(helper), | 351 Bind(&GetFileInfoHelper::CreateSnapshotFile, Unretained(helper), |
352 sync_file_util_.get(), base::Owned(context_ptr), url), | 352 sync_file_util_.get(), base::Owned(context_ptr), url), |
353 Bind(&GetFileInfoHelper::ReplySnapshotFile, Owned(helper), callback)); | 353 Bind(&GetFileInfoHelper::ReplySnapshotFile, Owned(helper), callback)); |
354 DCHECK(success); | 354 DCHECK(success); |
355 } | 355 } |
356 | 356 |
357 } // namespace storage | 357 } // namespace storage |
OLD | NEW |