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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_passthrough.h

Issue 15800004: [NaCl SDK] nacl_io: Added support for access() syscall. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to HEAD. Created 7 years, 6 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
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_ 5 #ifndef LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_
6 #define LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_ 6 #define LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_
7 7
8 #include "nacl_io/mount.h" 8 #include "nacl_io/mount.h"
9 9
10 class MountPassthrough : public Mount { 10 class MountPassthrough : public Mount {
11 protected: 11 protected:
12 MountPassthrough(); 12 MountPassthrough();
13 13
14 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi); 14 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi);
15 virtual void Destroy(); 15 virtual void Destroy();
16 16
17 public: 17 public:
18 virtual Error Access(const Path& path, int a_mode);
18 virtual Error Open(const Path& path, int mode, MountNode** out_node); 19 virtual Error Open(const Path& path, int mode, MountNode** out_node);
19 virtual Error OpenResource(const Path& path, MountNode** out_node); 20 virtual Error OpenResource(const Path& path, MountNode** out_node);
20 virtual Error Unlink(const Path& path); 21 virtual Error Unlink(const Path& path);
21 virtual Error Mkdir(const Path& path, int perm); 22 virtual Error Mkdir(const Path& path, int perm);
22 virtual Error Rmdir(const Path& path); 23 virtual Error Rmdir(const Path& path);
23 virtual Error Remove(const Path& path); 24 virtual Error Remove(const Path& path);
24 25
25 private: 26 private:
26 friend class Mount; 27 friend class Mount;
27 DISALLOW_COPY_AND_ASSIGN(MountPassthrough); 28 DISALLOW_COPY_AND_ASSIGN(MountPassthrough);
28 }; 29 };
29 30
30 #endif // LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_ 31 #endif // LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_mem.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698