Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(747)

Unified Diff: services/files/file_impl.cc

Issue 1055403002: Add an Ioctl() message to the File interface. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/files/file_impl.h ('k') | services/files/file_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/file_impl.cc
diff --git a/services/files/file_impl.cc b/services/files/file_impl.cc
index 3683c4763925cfac69eaa8c8bd4b39b13cd478e3..4c1ca4a91b983ce6612a99c34c924aa2595cd2b8 100644
--- a/services/files/file_impl.cc
+++ b/services/files/file_impl.cc
@@ -318,5 +318,18 @@ void FileImpl::AsBuffer(const AsBufferCallback& callback) {
callback.Run(ERROR_UNIMPLEMENTED, ScopedSharedBufferHandle());
}
+void FileImpl::Ioctl(uint32_t request,
+ Array<uint32_t> in_values,
+ const IoctlCallback& callback) {
+ if (!file_fd_.is_valid()) {
+ callback.Run(ERROR_CLOSED, Array<uint32_t>());
+ return;
+ }
+
+ // TODO(vtl): The "correct" error code should be one that can be translated to
+ // ENOTTY!
+ callback.Run(ERROR_UNAVAILABLE, Array<uint32_t>());
+}
+
} // namespace files
} // namespace mojo
« no previous file with comments | « services/files/file_impl.h ('k') | services/files/file_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698