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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_passthrough.h

Issue 16232016: [NaCl SDK] nacl_io: big refactor to return error value (errno). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge master, fix windows 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/mount_passthrough.h
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_passthrough.h b/native_client_sdk/src/libraries/nacl_io/mount_passthrough.h
index 00a0eec98f5c2f7fd1c435c722b7de42978587b3..b143abf007fc5000760df533e900302409d467e3 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_passthrough.h
+++ b/native_client_sdk/src/libraries/nacl_io/mount_passthrough.h
@@ -11,16 +11,16 @@ class MountPassthrough : public Mount {
protected:
MountPassthrough();
- virtual bool Init(int dev, StringMap_t& args, PepperInterface* ppapi);
+ virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi);
virtual void Destroy();
public:
- virtual MountNode *Open(const Path& path, int mode);
- virtual MountNode *OpenResource(const Path& path);
- virtual int Unlink(const Path& path);
- virtual int Mkdir(const Path& path, int perm);
- virtual int Rmdir(const Path& path);
- virtual int Remove(const Path& path);
+ virtual Error Open(const Path& path, int mode, MountNode** out_node);
+ virtual Error OpenResource(const Path& path, MountNode** out_node);
+ virtual Error Unlink(const Path& path);
+ virtual Error Mkdir(const Path& path, int perm);
+ virtual Error Rmdir(const Path& path);
+ virtual Error Remove(const Path& path);
private:
friend class Mount;

Powered by Google App Engine
This is Rietveld 408576698