OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Shared implementation of things common between |DirectoryImpl| and |
| 6 // |FileImpl|. |
| 7 |
| 8 #ifndef SERVICES_FILES_SHARED_IMPL_H_ |
| 9 #define SERVICES_FILES_SHARED_IMPL_H_ |
| 10 |
| 11 #include "mojo/public/cpp/bindings/callback.h" |
| 12 #include "services/files/types.mojom.h" |
| 13 |
| 14 namespace mojo { |
| 15 namespace files { |
| 16 |
| 17 // Stats the given FD (which must be valid), calling |callback| appropriately. |
| 18 void StatFD(int fd, const Callback<void(Error, FileInformationPtr)>& callback); |
| 19 |
| 20 // Touches the given FD (which must be valid), calling |callback| appropriately. |
| 21 void TouchFD(int fd, |
| 22 TimespecOrNowPtr atime, |
| 23 TimespecOrNowPtr mtime, |
| 24 const Callback<void(Error)>& callback); |
| 25 |
| 26 } // namespace files |
| 27 } // namespace mojo |
| 28 |
| 29 #endif // SERVICES_FILES_SHARED_IMPL_H_ |
OLD | NEW |