Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: native_client_sdk/src/libraries/nacl_mounts/kernel_object.h

Issue 10829027: [NaCl SDK] Add nacl_mounts to NaCl SDK build. Experimental for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698