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 28 matching lines...) Expand all Loading... |
39 virtual void Destroy(); | 39 virtual void Destroy(); |
40 | 40 |
41 virtual Error RemoveInternal(const Path& path, int remove_type); | 41 virtual Error RemoveInternal(const Path& path, int remove_type); |
42 Error BlockUntilFilesystemOpen(); | 42 Error BlockUntilFilesystemOpen(); |
43 | 43 |
44 private: | 44 private: |
45 static void FilesystemOpenCallbackThunk(void* user_data, int32_t result); | 45 static void FilesystemOpenCallbackThunk(void* user_data, int32_t result); |
46 void FilesystemOpenCallback(int32_t result); | 46 void FilesystemOpenCallback(int32_t result); |
47 Path GetFullPath(const Path& path); | 47 Path GetFullPath(const Path& path); |
48 | 48 |
| 49 CoreInterface* core_iface_; |
| 50 FileSystemInterface* filesystem_iface_; |
| 51 FileRefInterface* file_ref_iface_; |
| 52 FileIoInterface* file_io_iface_; |
| 53 |
49 PP_Resource filesystem_resource_; | 54 PP_Resource filesystem_resource_; |
50 bool filesystem_open_has_result_; // protected by lock_. | 55 bool filesystem_open_has_result_; // protected by lock_. |
51 Error filesystem_open_error_; // protected by lock_. | 56 Error filesystem_open_error_; // protected by lock_. |
52 | 57 |
53 pthread_cond_t filesystem_open_cond_; | 58 pthread_cond_t filesystem_open_cond_; |
54 sdk_util::SimpleLock filesysem_open_lock_; | 59 sdk_util::SimpleLock filesysem_open_lock_; |
55 std::string prefix_; | 60 std::string prefix_; |
56 | 61 |
57 friend class TypedFsFactory<Html5Fs>; | 62 friend class TypedFsFactory<Html5Fs>; |
58 }; | 63 }; |
59 | 64 |
60 } // namespace nacl_io | 65 } // namespace nacl_io |
61 | 66 |
62 #endif // LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_H_ | 67 #endif // LIBRARIES_NACL_IO_HTML5FS_HTML5_FS_H_ |
OLD | NEW |