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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_dev.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_DEV_H_ 5 #ifndef LIBRARIES_NACL_IO_MOUNT_DEV_H_
6 #define LIBRARIES_NACL_IO_MOUNT_DEV_H_ 6 #define LIBRARIES_NACL_IO_MOUNT_DEV_H_
7 7
8 #include "nacl_io/mount.h" 8 #include "nacl_io/mount.h"
9 9
10 class MountNode; 10 class MountNode;
11 11
12 class MountDev : public Mount { 12 class MountDev : public Mount {
13 public: 13 public:
14 virtual Error Access(const Path& path, int a_mode);
14 virtual Error Open(const Path& path, int mode, MountNode** out_node); 15 virtual Error Open(const Path& path, int mode, MountNode** out_node);
15 16
16 virtual Error Unlink(const Path& path); 17 virtual Error Unlink(const Path& path);
17 virtual Error Mkdir(const Path& path, int permissions); 18 virtual Error Mkdir(const Path& path, int permissions);
18 virtual Error Rmdir(const Path& path); 19 virtual Error Rmdir(const Path& path);
19 virtual Error Remove(const Path& path); 20 virtual Error Remove(const Path& path);
20 21
21 protected: 22 protected:
22 MountDev(); 23 MountDev();
23 24
24 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi); 25 virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi);
25 virtual void Destroy(); 26 virtual void Destroy();
26 27
27 private: 28 private:
28 MountNode* root_; 29 MountNode* root_;
29 30
30 friend class Mount; 31 friend class Mount;
31 }; 32 };
32 33
33 #endif // LIBRARIES_NACL_IO_MOUNT_DEV_H_ 34 #endif // LIBRARIES_NACL_IO_MOUNT_DEV_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount.h ('k') | native_client_sdk/src/libraries/nacl_io/mount_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698