| 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_KERNEL_HANDLE_H_ | 5 #ifndef LIBRARIES_NACL_IO_KERNEL_HANDLE_H_ |
| 6 #define LIBRARIES_NACL_IO_KERNEL_HANDLE_H_ | 6 #define LIBRARIES_NACL_IO_KERNEL_HANDLE_H_ |
| 7 | 7 |
| 8 #include <pthread.h> | 8 #include <pthread.h> |
| 9 | 9 |
| 10 #include "nacl_io/error.h" | 10 #include "nacl_io/error.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 Error Init(int open_flags); | 27 Error Init(int open_flags); |
| 28 | 28 |
| 29 // Assumes |out_offset| is non-NULL. | 29 // Assumes |out_offset| is non-NULL. |
| 30 Error Seek(off_t offset, int whence, off_t* out_offset); | 30 Error Seek(off_t offset, int whence, off_t* out_offset); |
| 31 | 31 |
| 32 ScopedRef<Mount> mount_; | 32 ScopedRef<Mount> mount_; |
| 33 ScopedRef<MountNode> node_; | 33 ScopedRef<MountNode> node_; |
| 34 size_t offs_; | 34 size_t offs_; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 friend class KernelObject; | |
| 38 friend class KernelProxy; | 37 friend class KernelProxy; |
| 39 DISALLOW_COPY_AND_ASSIGN(KernelHandle); | 38 DISALLOW_COPY_AND_ASSIGN(KernelHandle); |
| 40 }; | 39 }; |
| 41 | 40 |
| 42 typedef ScopedRef<KernelHandle> ScopedKernelHandle; | 41 typedef ScopedRef<KernelHandle> ScopedKernelHandle; |
| 43 | 42 |
| 44 #endif // LIBRARIES_NACL_IO_KERNEL_HANDLE_H_ | 43 #endif // LIBRARIES_NACL_IO_KERNEL_HANDLE_H_ |
| OLD | NEW |