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_FILE_IMPL_H_ | 5 #ifndef SERVICES_FILES_FILE_IMPL_H_ |
6 #define SERVICES_FILES_FILE_IMPL_H_ | 6 #define SERVICES_FILES_FILE_IMPL_H_ |
7 | 7 |
8 #include "base/files/scoped_file.h" | 8 #include "base/files/scoped_file.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "mojo/public/cpp/bindings/interface_request.h" | 10 #include "mojo/public/cpp/bindings/interface_request.h" |
11 #include "mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
12 #include "mojo/services/files/public/interfaces/directory.mojom.h" | 12 #include "mojo/services/files/interfaces/directory.mojom.h" |
13 | 13 |
14 namespace mojo { | 14 namespace mojo { |
15 namespace files { | 15 namespace files { |
16 | 16 |
17 class FileImpl : public File { | 17 class FileImpl : public File { |
18 public: | 18 public: |
19 // TODO(vtl): Will need more for, e.g., |Reopen()|. | 19 // TODO(vtl): Will need more for, e.g., |Reopen()|. |
20 FileImpl(InterfaceRequest<File> request, base::ScopedFD file_fd); | 20 FileImpl(InterfaceRequest<File> request, base::ScopedFD file_fd); |
21 ~FileImpl() override; | 21 ~FileImpl() override; |
22 | 22 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 StrongBinding<File> binding_; | 61 StrongBinding<File> binding_; |
62 base::ScopedFD file_fd_; | 62 base::ScopedFD file_fd_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(FileImpl); | 64 DISALLOW_COPY_AND_ASSIGN(FileImpl); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace files | 67 } // namespace files |
68 } // namespace mojo | 68 } // namespace mojo |
69 | 69 |
70 #endif // SERVICES_FILES_FILE_IMPL_H_ | 70 #endif // SERVICES_FILES_FILE_IMPL_H_ |
OLD | NEW |