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

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

Issue 304013002: [NaCl SDK] Create Filesystem nodes in /dev/fs/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/kernel_proxy.h
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.h b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.h
index 89b8f19068a2791651c6ebf67b7cd6a7578bffea..22c9a617fdc562f765f2976b232a7ea6226db7cd 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.h
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.h
@@ -8,6 +8,7 @@
#include <map>
#include <string>
+#include "nacl_io/devfs/dev_fs.h"
#include "nacl_io/event_emitter.h"
#include "nacl_io/fs_factory.h"
#include "nacl_io/host_resolver.h"
@@ -206,8 +207,20 @@ class KernelProxy : protected KernelObject {
#endif // PROVIDES_SOCKET_API
protected:
+ Error MountInternal(const char* source,
+ const char* target,
+ const char* filesystemtype,
+ unsigned long mountflags,
+ const void* data,
+ bool create_fs_node,
+ ScopedFilesystem* out_filesystem);
+
+ Error CreateFsNode(const ScopedFilesystem& fs);
+
+ protected:
FsFactoryMap_t factories_;
- sdk_util::ScopedRef<StreamFs> stream_mount_;
+ sdk_util::ScopedRef<StreamFs> stream_fs_;
+ sdk_util::ScopedRef<DevFs> dev_fs_;
int dev_;
PepperInterface* ppapi_;
static KernelProxy *s_instance_;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_object.cc ('k') | native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698