| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_HTML5FS_HTML5_FS_H_ | 5 #ifndef LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_H_ |
| 6 #define LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_H_ | 6 #define LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_H_ |
| 7 | 7 |
| 8 #include <pthread.h> | 8 #include <pthread.h> |
| 9 | 9 |
| 10 #include "nacl_io/filesystem.h" | 10 #include "nacl_io/filesystem.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 virtual Error OpenWithMode(const Path& path, int open_flags, mode_t mode, | 21 virtual Error OpenWithMode(const Path& path, int open_flags, mode_t mode, |
| 22 ScopedNode* out_node); | 22 ScopedNode* out_node); |
| 23 virtual Error Unlink(const Path& path); | 23 virtual Error Unlink(const Path& path); |
| 24 virtual Error Mkdir(const Path& path, int permissions); | 24 virtual Error Mkdir(const Path& path, int permissions); |
| 25 virtual Error Rmdir(const Path& path); | 25 virtual Error Rmdir(const Path& path); |
| 26 virtual Error Remove(const Path& path); | 26 virtual Error Remove(const Path& path); |
| 27 virtual Error Rename(const Path& path, const Path& newpath); | 27 virtual Error Rename(const Path& path, const Path& newpath); |
| 28 | 28 |
| 29 PP_Resource filesystem_resource() { return filesystem_resource_; } | 29 PP_Resource filesystem_resource() { return filesystem_resource_; } |
| 30 | 30 |
| 31 virtual void OnNodeCreated(Node* node); |
| 32 virtual void OnNodeDestroyed(Node* node); |
| 33 |
| 31 protected: | 34 protected: |
| 32 static const int REMOVE_DIR = 1; | 35 static const int REMOVE_DIR = 1; |
| 33 static const int REMOVE_FILE = 2; | 36 static const int REMOVE_FILE = 2; |
| 34 static const int REMOVE_ALL = REMOVE_DIR | REMOVE_FILE; | 37 static const int REMOVE_ALL = REMOVE_DIR | REMOVE_FILE; |
| 35 | 38 |
| 36 Html5Fs(); | 39 Html5Fs(); |
| 37 | 40 |
| 38 virtual Error Init(const FsInitArgs& args); | 41 virtual Error Init(const FsInitArgs& args); |
| 39 virtual void Destroy(); | 42 virtual void Destroy(); |
| 40 | 43 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 58 pthread_cond_t filesystem_open_cond_; | 61 pthread_cond_t filesystem_open_cond_; |
| 59 sdk_util::SimpleLock filesysem_open_lock_; | 62 sdk_util::SimpleLock filesysem_open_lock_; |
| 60 std::string prefix_; | 63 std::string prefix_; |
| 61 | 64 |
| 62 friend class TypedFsFactory<Html5Fs>; | 65 friend class TypedFsFactory<Html5Fs>; |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 } // namespace nacl_io | 68 } // namespace nacl_io |
| 66 | 69 |
| 67 #endif // LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_H_ | 70 #endif // LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_H_ |
| OLD | NEW |