| 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::Access(const Path& path, int a_mode) { | |
| 88 return EACCES; | |
| 89 } | |
| 90 | |
| 91 Error StreamFs::Open(const Path& path, int o_flags, ScopedNode* out_node) { | 87 Error StreamFs::Open(const Path& path, int o_flags, ScopedNode* out_node) { |
| 92 return EACCES; | 88 return EACCES; |
| 93 } | 89 } |
| 94 | 90 |
| 95 Error StreamFs::Unlink(const Path& path) { | 91 Error StreamFs::Unlink(const Path& path) { |
| 96 return EACCES; | 92 return EACCES; |
| 97 } | 93 } |
| 98 | 94 |
| 99 Error StreamFs::Mkdir(const Path& path, int permissions) { | 95 Error StreamFs::Mkdir(const Path& path, int permissions) { |
| 100 return EACCES; | 96 return EACCES; |
| 101 } | 97 } |
| 102 | 98 |
| 103 Error StreamFs::Rmdir(const Path& path) { | 99 Error StreamFs::Rmdir(const Path& path) { |
| 104 return EACCES; | 100 return EACCES; |
| 105 } | 101 } |
| 106 | 102 |
| 107 Error StreamFs::Remove(const Path& path) { | 103 Error StreamFs::Remove(const Path& path) { |
| 108 return EACCES; | 104 return EACCES; |
| 109 } | 105 } |
| 110 | 106 |
| 111 Error StreamFs::Rename(const Path& path, const Path& newpath) { | 107 Error StreamFs::Rename(const Path& path, const Path& newpath) { |
| 112 return EACCES; | 108 return EACCES; |
| 113 } | 109 } |
| 114 | 110 |
| 115 } // namespace nacl_io | 111 } // namespace nacl_io |
| OLD | NEW |