| OLD | NEW |
| 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_NODE_H_ | 5 #ifndef LIBRARIES_NACL_IO_MOUNT_NODE_H_ |
| 6 #define LIBRARIES_NACL_IO_MOUNT_NODE_H_ | 6 #define LIBRARIES_NACL_IO_MOUNT_NODE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "nacl_io/error.h" | 10 #include "nacl_io/error.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual Error Tcsetattr(int optional_actions, | 75 virtual Error Tcsetattr(int optional_actions, |
| 76 const struct termios *termios_p); | 76 const struct termios *termios_p); |
| 77 | 77 |
| 78 virtual int GetLinks(); | 78 virtual int GetLinks(); |
| 79 virtual int GetMode(); | 79 virtual int GetMode(); |
| 80 virtual int GetType(); | 80 virtual int GetType(); |
| 81 // Assume that |out_size| is non-NULL. | 81 // Assume that |out_size| is non-NULL. |
| 82 virtual Error GetSize(size_t* out_size); | 82 virtual Error GetSize(size_t* out_size); |
| 83 virtual bool IsaDir(); | 83 virtual bool IsaDir(); |
| 84 virtual bool IsaFile(); | 84 virtual bool IsaFile(); |
| 85 virtual bool IsaSock(); |
| 85 virtual bool IsaTTY(); | 86 virtual bool IsaTTY(); |
| 86 | 87 |
| 87 | 88 |
| 88 // Number of children for this node (directory) | 89 // Number of children for this node (directory) |
| 89 virtual int ChildCount(); | 90 virtual int ChildCount(); |
| 90 | 91 |
| 91 protected: | 92 protected: |
| 92 // Directory operations on the node are done by the Mount. The mount's lock | 93 // Directory operations on the node are done by the Mount. The mount's lock |
| 93 // must be held while these calls are made. | 94 // must be held while these calls are made. |
| 94 | 95 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 119 friend class MountDev; | 120 friend class MountDev; |
| 120 friend class MountHtml5Fs; | 121 friend class MountHtml5Fs; |
| 121 friend class MountHttp; | 122 friend class MountHttp; |
| 122 friend class MountMem; | 123 friend class MountMem; |
| 123 friend class MountNodeDir; | 124 friend class MountNodeDir; |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace nacl_io | 127 } // namespace nacl_io |
| 127 | 128 |
| 128 #endif // LIBRARIES_NACL_IO_MOUNT_NODE_H_ | 129 #endif // LIBRARIES_NACL_IO_MOUNT_NODE_H_ |
| OLD | NEW |