| 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/c/mojio_sys_types.h" | 10 #include "files/c/mojio_sys_types.h" |
| 11 #include "files/interfaces/directory.mojom-sync.h" | 11 #include "files/interfaces/directory.mojom-sync.h" |
| 12 #include "files/interfaces/directory.mojom.h" | 12 #include "files/interfaces/directory.mojom.h" |
| 13 #include "mojo/public/c/system/macros.h" | |
| 14 #include "mojo/public/cpp/bindings/interface_handle.h" | 13 #include "mojo/public/cpp/bindings/interface_handle.h" |
| 15 #include "mojo/public/cpp/bindings/synchronous_interface_ptr.h" | 14 #include "mojo/public/cpp/bindings/synchronous_interface_ptr.h" |
| 15 #include "mojo/public/cpp/system/macros.h" |
| 16 | 16 |
| 17 namespace mojio { | 17 namespace mojio { |
| 18 | 18 |
| 19 class ErrnoImpl; | 19 class ErrnoImpl; |
| 20 class FDImpl; | 20 class FDImpl; |
| 21 | 21 |
| 22 // TODO(vtl): Probably this should be made into an implementation of |FDImpl| | 22 // TODO(vtl): Probably this should be made into an implementation of |FDImpl| |
| 23 // (with additional methods) and renamed |DirectoryFDImpl|, to support opening | 23 // (with additional methods) and renamed |DirectoryFDImpl|, to support opening |
| 24 // directories, |openat()|, etc. | 24 // directories, |openat()|, etc. |
| 25 class DirectoryWrapper { | 25 class DirectoryWrapper { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 41 private: | 41 private: |
| 42 ErrnoImpl* const errno_impl_; | 42 ErrnoImpl* const errno_impl_; |
| 43 mojo::SynchronousInterfacePtr<mojo::files::Directory> directory_; | 43 mojo::SynchronousInterfacePtr<mojo::files::Directory> directory_; |
| 44 | 44 |
| 45 MOJO_DISALLOW_COPY_AND_ASSIGN(DirectoryWrapper); | 45 MOJO_DISALLOW_COPY_AND_ASSIGN(DirectoryWrapper); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace mojio | 48 } // namespace mojio |
| 49 | 49 |
| 50 #endif // SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ | 50 #endif // SERVICES_FILES_C_LIB_DIRECTORY_WRAPPER_H_ |
| OLD | NEW |