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

Unified Diff: native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h

Issue 320983002: [NaCl SDK] nacl_io: Allows subtree of html5fs to be mounted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h
diff --git a/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h b/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h
index 232deda092134b9a95e401f1317171f82ac49e0b..fde92cd64866af0d7262656f741d74bc7630139e 100644
--- a/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h
+++ b/native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h
@@ -29,16 +29,22 @@ class Html5Fs : public Filesystem {
PP_Resource filesystem_resource() { return filesystem_resource_; }
protected:
+ static const int REMOVE_DIR = 1;
+ static const int REMOVE_FILE = 2;
+ static const int REMOVE_ALL = REMOVE_DIR | REMOVE_FILE;
+
Html5Fs();
virtual Error Init(const FsInitArgs& args);
virtual void Destroy();
+ virtual Error RemoveInternal(const Path& path, int remove_type);
Error BlockUntilFilesystemOpen();
private:
static void FilesystemOpenCallbackThunk(void* user_data, int32_t result);
void FilesystemOpenCallback(int32_t result);
+ Path GetFullPath(const Path& path);
PP_Resource filesystem_resource_;
bool filesystem_open_has_result_; // protected by lock_.
@@ -46,6 +52,7 @@ class Html5Fs : public Filesystem {
pthread_cond_t filesystem_open_cond_;
sdk_util::SimpleLock filesysem_open_lock_;
+ std::string prefix_;
friend class TypedFsFactory<Html5Fs>;
};
« no previous file with comments | « no previous file | native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698