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 #ifndef COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 5 #ifndef COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
6 #define COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 6 #define COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // |Directory| implementation: | 38 // |Directory| implementation: |
39 void Read(const ReadCallback& callback) override; | 39 void Read(const ReadCallback& callback) override; |
40 void OpenFile(const mojo::String& path, | 40 void OpenFile(const mojo::String& path, |
41 mojo::InterfaceRequest<File> file, | 41 mojo::InterfaceRequest<File> file, |
42 uint32_t open_flags, | 42 uint32_t open_flags, |
43 const OpenFileCallback& callback) override; | 43 const OpenFileCallback& callback) override; |
44 void OpenFileHandle(const mojo::String& path, | 44 void OpenFileHandle(const mojo::String& path, |
45 uint32_t open_flags, | 45 uint32_t open_flags, |
46 const OpenFileHandleCallback& callback) override; | 46 const OpenFileHandleCallback& callback) override; |
| 47 void OpenFileHandles(mojo::Array<FileOpenDetailsPtr> details, |
| 48 const OpenFileHandlesCallback& callback) override; |
47 void OpenDirectory(const mojo::String& path, | 49 void OpenDirectory(const mojo::String& path, |
48 mojo::InterfaceRequest<Directory> directory, | 50 mojo::InterfaceRequest<Directory> directory, |
49 uint32_t open_flags, | 51 uint32_t open_flags, |
50 const OpenDirectoryCallback& callback) override; | 52 const OpenDirectoryCallback& callback) override; |
51 void Rename(const mojo::String& path, | 53 void Rename(const mojo::String& path, |
52 const mojo::String& new_path, | 54 const mojo::String& new_path, |
53 const RenameCallback& callback) override; | 55 const RenameCallback& callback) override; |
54 void Delete(const mojo::String& path, | 56 void Delete(const mojo::String& path, |
55 uint32_t delete_flags, | 57 uint32_t delete_flags, |
56 const DeleteCallback& callback) override; | 58 const DeleteCallback& callback) override; |
(...skipping 16 matching lines...) Expand all Loading... |
73 base::FilePath directory_path_; | 75 base::FilePath directory_path_; |
74 scoped_refptr<SharedTempDir> temp_dir_; | 76 scoped_refptr<SharedTempDir> temp_dir_; |
75 scoped_refptr<LockTable> lock_table_; | 77 scoped_refptr<LockTable> lock_table_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); | 79 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); |
78 }; | 80 }; |
79 | 81 |
80 } // namespace filesystem | 82 } // namespace filesystem |
81 | 83 |
82 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 84 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
OLD | NEW |