| 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" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void Stat(const StatCallback& callback) override; | 46 void Stat(const StatCallback& callback) override; |
| 47 void Truncate(int64_t size, const TruncateCallback& callback) override; | 47 void Truncate(int64_t size, const TruncateCallback& callback) override; |
| 48 void Touch(TimespecOrNowPtr atime, | 48 void Touch(TimespecOrNowPtr atime, |
| 49 TimespecOrNowPtr mtime, | 49 TimespecOrNowPtr mtime, |
| 50 const TouchCallback& callback) override; | 50 const TouchCallback& callback) override; |
| 51 void Dup(InterfaceRequest<File> file, const DupCallback& callback) override; | 51 void Dup(InterfaceRequest<File> file, const DupCallback& callback) override; |
| 52 void Reopen(InterfaceRequest<File> file, | 52 void Reopen(InterfaceRequest<File> file, |
| 53 uint32_t open_flags, | 53 uint32_t open_flags, |
| 54 const ReopenCallback& callback) override; | 54 const ReopenCallback& callback) override; |
| 55 void AsBuffer(const AsBufferCallback& callback) override; | 55 void AsBuffer(const AsBufferCallback& callback) override; |
| 56 void Ioctl(uint32_t request, |
| 57 Array<uint32_t> in_values, |
| 58 const IoctlCallback& callback); |
| 56 | 59 |
| 57 private: | 60 private: |
| 58 StrongBinding<File> binding_; | 61 StrongBinding<File> binding_; |
| 59 base::ScopedFD file_fd_; | 62 base::ScopedFD file_fd_; |
| 60 | 63 |
| 61 DISALLOW_COPY_AND_ASSIGN(FileImpl); | 64 DISALLOW_COPY_AND_ASSIGN(FileImpl); |
| 62 }; | 65 }; |
| 63 | 66 |
| 64 } // namespace files | 67 } // namespace files |
| 65 } // namespace mojo | 68 } // namespace mojo |
| 66 | 69 |
| 67 #endif // SERVICES_FILES_FILE_IMPL_H_ | 70 #endif // SERVICES_FILES_FILE_IMPL_H_ |
| OLD | NEW |