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 | |
6 #ifndef LIBRARIES_NACL_MOUNTS_KERNEL_OBJECT_H_ | 5 #ifndef LIBRARIES_NACL_MOUNTS_KERNEL_OBJECT_H_ |
7 #define LIBRARIES_NACL_MOUNTS_KERNEL_OBJECT_H_ | 6 #define LIBRARIES_NACL_MOUNTS_KERNEL_OBJECT_H_ |
8 | 7 |
9 #include <pthread.h> | 8 #include <pthread.h> |
10 | |
11 #include <map> | 9 #include <map> |
12 #include <string> | 10 #include <string> |
13 #include <vector> | 11 #include <vector> |
14 | 12 |
15 #include "nacl_mounts/path.h" | 13 #include "nacl_mounts/path.h" |
16 | 14 |
17 class KernelHandle; | 15 class KernelHandle; |
18 class Mount; | 16 class Mount; |
19 | 17 |
20 // KernelObject provides basic functionality for threadsafe | 18 // KernelObject provides basic functionality for threadsafe |
(...skipping 28 matching lines...) Expand all Loading... |
49 std::string cwd_; | 47 std::string cwd_; |
50 | 48 |
51 HandleMap_t handle_map_; | 49 HandleMap_t handle_map_; |
52 MountMap_t mounts_; | 50 MountMap_t mounts_; |
53 pthread_mutex_t lock_; | 51 pthread_mutex_t lock_; |
54 | 52 |
55 DISALLOW_COPY_AND_ASSIGN(KernelObject); | 53 DISALLOW_COPY_AND_ASSIGN(KernelObject); |
56 }; | 54 }; |
57 | 55 |
58 #endif // LIBRARIES_NACL_MOUNTS_KERNEL_OBJECT_H_ | 56 #endif // LIBRARIES_NACL_MOUNTS_KERNEL_OBJECT_H_ |
59 | |
OLD | NEW |