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