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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.h

Issue 349703003: [NaCl SDK] Add some more logging to nacl_io. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux host build 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/host_resolver.cc ('k') | 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