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 COMPONENTS_FILESYSTEM_FILE_IMPL_H_ | 5 #ifndef COMPONENTS_FILESYSTEM_FILE_IMPL_H_ |
6 #define COMPONENTS_FILESYSTEM_FILE_IMPL_H_ | 6 #define COMPONENTS_FILESYSTEM_FILE_IMPL_H_ |
7 | 7 |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/files/scoped_file.h" | 9 #include "base/files/scoped_file.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 void Seek(int64_t offset, | 40 void Seek(int64_t offset, |
41 Whence whence, | 41 Whence whence, |
42 const SeekCallback& callback) override; | 42 const SeekCallback& callback) override; |
43 void Stat(const StatCallback& callback) override; | 43 void Stat(const StatCallback& callback) override; |
44 void Truncate(int64_t size, const TruncateCallback& callback) override; | 44 void Truncate(int64_t size, const TruncateCallback& callback) override; |
45 void Touch(TimespecOrNowPtr atime, | 45 void Touch(TimespecOrNowPtr atime, |
46 TimespecOrNowPtr mtime, | 46 TimespecOrNowPtr mtime, |
47 const TouchCallback& callback) override; | 47 const TouchCallback& callback) override; |
48 void Dup(mojo::InterfaceRequest<File> file, | 48 void Dup(mojo::InterfaceRequest<File> file, |
49 const DupCallback& callback) override; | 49 const DupCallback& callback) override; |
| 50 void Flush(const FlushCallback& callback) override; |
50 void AsHandle(const AsHandleCallback& callback) override; | 51 void AsHandle(const AsHandleCallback& callback) override; |
51 | 52 |
52 private: | 53 private: |
53 mojo::StrongBinding<File> binding_; | 54 mojo::StrongBinding<File> binding_; |
54 base::File file_; | 55 base::File file_; |
55 | 56 |
56 DISALLOW_COPY_AND_ASSIGN(FileImpl); | 57 DISALLOW_COPY_AND_ASSIGN(FileImpl); |
57 }; | 58 }; |
58 | 59 |
59 } // namespace filesystem | 60 } // namespace filesystem |
60 | 61 |
61 #endif // COMPONENTS_FILESYSTEM_FILE_IMPL_H_ | 62 #endif // COMPONENTS_FILESYSTEM_FILE_IMPL_H_ |
OLD | NEW |