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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_html5fs.h

Issue 19717004: [NaCl SDK] Add nacl_io and sdk_util namespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad copyright in mount_mem Created 7 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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_MOUNT_HTML5FS_H_ 5 #ifndef LIBRARIES_NACL_IO_MOUNT_HTML5FS_H_
6 #define LIBRARIES_NACL_IO_MOUNT_HTML5FS_H_ 6 #define LIBRARIES_NACL_IO_MOUNT_HTML5FS_H_
7 7
8 #include <pthread.h> 8 #include <pthread.h>
9 9
10 #include "nacl_io/mount.h" 10 #include "nacl_io/mount.h"
11 #include "nacl_io/pepper_interface.h" 11 #include "nacl_io/pepper_interface.h"
12 #include "nacl_io/typed_mount_factory.h" 12 #include "nacl_io/typed_mount_factory.h"
13 #include "sdk_util/simple_lock.h" 13 #include "sdk_util/simple_lock.h"
14 14
15 namespace nacl_io {
16
15 class MountNode; 17 class MountNode;
16 18
17 class MountHtml5Fs : public Mount { 19 class MountHtml5Fs : public Mount {
18 public: 20 public:
19 virtual Error Access(const Path& path, int a_mode); 21 virtual Error Access(const Path& path, int a_mode);
20 virtual Error Open(const Path& path, int mode, ScopedMountNode* out_node); 22 virtual Error Open(const Path& path, int mode, ScopedMountNode* out_node);
21 virtual Error Unlink(const Path& path); 23 virtual Error Unlink(const Path& path);
22 virtual Error Mkdir(const Path& path, int permissions); 24 virtual Error Mkdir(const Path& path, int permissions);
23 virtual Error Rmdir(const Path& path); 25 virtual Error Rmdir(const Path& path);
24 virtual Error Remove(const Path& path); 26 virtual Error Remove(const Path& path);
(...skipping 10 matching lines...) Expand all
35 37
36 private: 38 private:
37 static void FilesystemOpenCallbackThunk(void* user_data, int32_t result); 39 static void FilesystemOpenCallbackThunk(void* user_data, int32_t result);
38 void FilesystemOpenCallback(int32_t result); 40 void FilesystemOpenCallback(int32_t result);
39 41
40 PP_Resource filesystem_resource_; 42 PP_Resource filesystem_resource_;
41 bool filesystem_open_has_result_; // protected by lock_. 43 bool filesystem_open_has_result_; // protected by lock_.
42 Error filesystem_open_error_; // protected by lock_. 44 Error filesystem_open_error_; // protected by lock_.
43 45
44 pthread_cond_t filesystem_open_cond_; 46 pthread_cond_t filesystem_open_cond_;
45 SimpleLock filesysem_open_lock_; 47 sdk_util::SimpleLock filesysem_open_lock_;
46 48
47 friend class TypedMountFactory<MountHtml5Fs>; 49 friend class TypedMountFactory<MountHtml5Fs>;
48 }; 50 };
49 51
52 } // namespace nacl_io
53
50 #endif // LIBRARIES_NACL_IO_MOUNT_HTML5FS_H_ 54 #endif // LIBRARIES_NACL_IO_MOUNT_HTML5FS_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_factory.h ('k') | native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698