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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/stream/stream_fs.h

Issue 547053002: [NaCl SDK] nacl_io: Remove Node::Access method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@http_fs_root
Patch Set: Created 6 years, 3 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
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_STREAM_STREAM_H_ 5 #ifndef LIBRARIES_NACL_IO_STREAM_STREAM_H_
6 #define LIBRARIES_NACL_IO_STREAM_STREAM_H_ 6 #define LIBRARIES_NACL_IO_STREAM_STREAM_H_
7 7
8 #include "nacl_io/filesystem.h" 8 #include "nacl_io/filesystem.h"
9 9
10 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void EnqueueWork(Work* work); 47 void EnqueueWork(Work* work);
48 48
49 // Returns a completion callback which will execute the StartWork member 49 // Returns a completion callback which will execute the StartWork member
50 // of a MountSocketWork object. 50 // of a MountSocketWork object.
51 static PP_CompletionCallback GetStartCompletion(Work* work); 51 static PP_CompletionCallback GetStartCompletion(Work* work);
52 52
53 // Returns a completion callback which will execute the RunCallback member 53 // Returns a completion callback which will execute the RunCallback member
54 // of a MountSocketWork object. 54 // of a MountSocketWork object.
55 static PP_CompletionCallback GetRunCompletion(Work* work); 55 static PP_CompletionCallback GetRunCompletion(Work* work);
56 56
57 virtual Error Access(const Path& path, int a_mode);
58 virtual Error Open(const Path& path, int o_flags, ScopedNode* out_node); 57 virtual Error Open(const Path& path, int o_flags, ScopedNode* out_node);
59 virtual Error Unlink(const Path& path); 58 virtual Error Unlink(const Path& path);
60 virtual Error Mkdir(const Path& path, int permissions); 59 virtual Error Mkdir(const Path& path, int permissions);
61 virtual Error Rmdir(const Path& path); 60 virtual Error Rmdir(const Path& path);
62 virtual Error Remove(const Path& path); 61 virtual Error Remove(const Path& path);
63 virtual Error Rename(const Path& path, const Path& newpath); 62 virtual Error Rename(const Path& path, const Path& newpath);
64 63
65 static void* StreamThreadThunk(void*); 64 static void* StreamThreadThunk(void*);
66 void StreamThread(); 65 void StreamThread();
67 66
68 private: 67 private:
69 PP_Resource message_loop_; 68 PP_Resource message_loop_;
70 pthread_cond_t message_cond_; 69 pthread_cond_t message_cond_;
71 sdk_util::SimpleLock message_lock_; 70 sdk_util::SimpleLock message_lock_;
72 71
73 friend class KernelProxy; 72 friend class KernelProxy;
74 DISALLOW_COPY_AND_ASSIGN(StreamFs); 73 DISALLOW_COPY_AND_ASSIGN(StreamFs);
75 }; 74 };
76 75
77 } // namespace nacl_io 76 } // namespace nacl_io
78 77
79 #endif // LIBRARIES_NACL_IO_STREAM_STREAM_H_ 78 #endif // LIBRARIES_NACL_IO_STREAM_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698