| 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 #ifndef LIBRARIES_NACL_IO_NODE_H_ | 5 #ifndef LIBRARIES_NACL_IO_NODE_H_ |
| 6 #define LIBRARIES_NACL_IO_NODE_H_ | 6 #define LIBRARIES_NACL_IO_NODE_H_ |
| 7 | 7 |
| 8 #include <stdarg.h> | 8 #include <stdarg.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 UPDATE_MTIME = 2, | 133 UPDATE_MTIME = 2, |
| 134 UPDATE_CTIME = 4, | 134 UPDATE_CTIME = 4, |
| 135 }; | 135 }; |
| 136 void UpdateTime(int update_bits); | 136 void UpdateTime(int update_bits); |
| 137 | 137 |
| 138 protected: | 138 protected: |
| 139 struct stat stat_; | 139 struct stat stat_; |
| 140 sdk_util::SimpleLock node_lock_; | 140 sdk_util::SimpleLock node_lock_; |
| 141 | 141 |
| 142 // We use a pointer directly to avoid cycles in the ref count. | 142 // We use a pointer directly to avoid cycles in the ref count. |
| 143 // TODO(noelallen) We should change this so it's unnecessary for the node | 143 // TODO(bradnelson) We should change this so it's unnecessary for the node |
| 144 // to track it's parent. When a node is unlinked, the filesystem should do | 144 // to track it's parent. When a node is unlinked, the filesystem should do |
| 145 // any cleanup it needs. | 145 // any cleanup it needs. |
| 146 Filesystem* filesystem_; | 146 Filesystem* filesystem_; |
| 147 | 147 |
| 148 friend class DevFs; | 148 friend class DevFs; |
| 149 friend class DirNode; | 149 friend class DirNode; |
| 150 friend class Filesystem; | 150 friend class Filesystem; |
| 151 friend class FuseFs; | 151 friend class FuseFs; |
| 152 friend class Html5Fs; | 152 friend class Html5Fs; |
| 153 friend class HttpFs; | 153 friend class HttpFs; |
| 154 friend class MemFs; | 154 friend class MemFs; |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace nacl_io | 157 } // namespace nacl_io |
| 158 | 158 |
| 159 #endif // LIBRARIES_NACL_IO_NODE_H_ | 159 #endif // LIBRARIES_NACL_IO_NODE_H_ |
| OLD | NEW |