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

Side by Side Diff: services/files/file_impl.h

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, 8 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 unified diff | Download patch
« no previous file with comments | « mojo/services/files/public/interfaces/file.mojom ('k') | services/files/file_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « mojo/services/files/public/interfaces/file.mojom ('k') | services/files/file_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698