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 SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ | 5 #ifndef SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ |
6 #define SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ | 6 #define SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "files/public/c/mojio_sys_types.h" | 10 #include "files/c/mojio_sys_types.h" |
11 #include "files/public/interfaces/directory.mojom.h" | 11 #include "files/interfaces/directory.mojom.h" |
12 #include "mojo/public/c/system/macros.h" | 12 #include "mojo/public/c/system/macros.h" |
13 | 13 |
14 namespace mojio { | 14 namespace mojio { |
15 | 15 |
16 class ErrnoImpl; | 16 class ErrnoImpl; |
17 class FDImpl; | 17 class FDImpl; |
18 | 18 |
19 // TODO(vtl): Probably this should be made into an implementation of |FDImpl| | 19 // TODO(vtl): Probably this should be made into an implementation of |FDImpl| |
20 // (with additional methods) and renamed |DirectoryFDImpl|, to support opening | 20 // (with additional methods) and renamed |DirectoryFDImpl|, to support opening |
21 // directories, |openat()|, etc> | 21 // directories, |openat()|, etc> |
(...skipping 13 matching lines...) Expand all Loading... |
35 private: | 35 private: |
36 ErrnoImpl* const errno_impl_; | 36 ErrnoImpl* const errno_impl_; |
37 mojo::files::DirectoryPtr directory_; | 37 mojo::files::DirectoryPtr directory_; |
38 | 38 |
39 MOJO_DISALLOW_COPY_AND_ASSIGN(DirectoryWrapper); | 39 MOJO_DISALLOW_COPY_AND_ASSIGN(DirectoryWrapper); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace mojio | 42 } // namespace mojio |
43 | 43 |
44 #endif // SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ | 44 #endif // SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ |
OLD | NEW |