OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/filesystem/file_system_impl.h" | 5 #include "components/filesystem/file_system_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/files/scoped_file.h" | 14 #include "base/files/scoped_file.h" |
15 #include "base/files/scoped_temp_dir.h" | 15 #include "base/files/scoped_temp_dir.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/memory/ptr_util.h" |
17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
18 #include "components/filesystem/directory_impl.h" | 19 #include "components/filesystem/directory_impl.h" |
19 #include "components/filesystem/lock_table.h" | 20 #include "components/filesystem/lock_table.h" |
20 #include "mojo/public/cpp/bindings/strong_binding.h" | 21 #include "mojo/public/cpp/bindings/strong_binding.h" |
21 #include "services/service_manager/public/cpp/identity.h" | 22 #include "services/service_manager/public/cpp/identity.h" |
22 #include "url/gurl.h" | 23 #include "url/gurl.h" |
23 | 24 |
24 namespace filesystem { | 25 namespace filesystem { |
25 | 26 |
26 FileSystemImpl::FileSystemImpl(const service_manager::Identity& remote_identity, | 27 FileSystemImpl::FileSystemImpl(const service_manager::Identity& remote_identity, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 scoped_refptr<SharedTempDir> shared_temp_dir = | 61 scoped_refptr<SharedTempDir> shared_temp_dir = |
61 new SharedTempDir(std::move(temp_dir)); | 62 new SharedTempDir(std::move(temp_dir)); |
62 | 63 |
63 mojo::MakeStrongBinding(base::MakeUnique<DirectoryImpl>( | 64 mojo::MakeStrongBinding(base::MakeUnique<DirectoryImpl>( |
64 path, std::move(shared_temp_dir), lock_table_), | 65 path, std::move(shared_temp_dir), lock_table_), |
65 std::move(directory)); | 66 std::move(directory)); |
66 callback.Run(mojom::FileError::OK); | 67 callback.Run(mojom::FileError::OK); |
67 } | 68 } |
68 | 69 |
69 } // namespace filesystem | 70 } // namespace filesystem |
OLD | NEW |