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 #include "nacl_io/stream/stream_fs.h" | 5 #include "nacl_io/stream/stream_fs.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 | 8 |
9 #include "nacl_io/ossocket.h" | 9 #include "nacl_io/ossocket.h" |
10 #include "nacl_io/pepper_interface.h" | 10 #include "nacl_io/pepper_interface.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } | 77 } |
78 | 78 |
79 StreamFs::~StreamFs() { | 79 StreamFs::~StreamFs() { |
80 if (message_loop_) { | 80 if (message_loop_) { |
81 ppapi_->GetMessageLoopInterface()->PostQuit(message_loop_, PP_TRUE); | 81 ppapi_->GetMessageLoopInterface()->PostQuit(message_loop_, PP_TRUE); |
82 ppapi_->ReleaseResource(message_loop_); | 82 ppapi_->ReleaseResource(message_loop_); |
83 } | 83 } |
84 pthread_cond_destroy(&message_cond_); | 84 pthread_cond_destroy(&message_cond_); |
85 } | 85 } |
86 | 86 |
87 Error StreamFs::Open(const Path& path, int o_flags, ScopedNode* out_node) { | 87 Error StreamFs::OpenWithMode(const Path& path, int o_flags, mode_t mode, |
| 88 ScopedNode* out_node) { |
88 return EACCES; | 89 return EACCES; |
89 } | 90 } |
90 | 91 |
91 Error StreamFs::Unlink(const Path& path) { | 92 Error StreamFs::Unlink(const Path& path) { |
92 return EACCES; | 93 return EACCES; |
93 } | 94 } |
94 | 95 |
95 Error StreamFs::Mkdir(const Path& path, int permissions) { | 96 Error StreamFs::Mkdir(const Path& path, int permissions) { |
96 return EACCES; | 97 return EACCES; |
97 } | 98 } |
98 | 99 |
99 Error StreamFs::Rmdir(const Path& path) { | 100 Error StreamFs::Rmdir(const Path& path) { |
100 return EACCES; | 101 return EACCES; |
101 } | 102 } |
102 | 103 |
103 Error StreamFs::Remove(const Path& path) { | 104 Error StreamFs::Remove(const Path& path) { |
104 return EACCES; | 105 return EACCES; |
105 } | 106 } |
106 | 107 |
107 Error StreamFs::Rename(const Path& path, const Path& newpath) { | 108 Error StreamFs::Rename(const Path& path, const Path& newpath) { |
108 return EACCES; | 109 return EACCES; |
109 } | 110 } |
110 | 111 |
111 } // namespace nacl_io | 112 } // namespace nacl_io |
OLD | NEW |