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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/kernel_proxy.h

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix c file. Created 7 years, 10 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 #ifndef LIBRARIES_NACL_MOUNTS_KERNEL_PROXY_H_ 5 #ifndef LIBRARIES_NACL_MOUNTS_KERNEL_PROXY_H_
6 #define LIBRARIES_NACL_MOUNTS_KERNEL_PROXY_H_ 6 #define LIBRARIES_NACL_MOUNTS_KERNEL_PROXY_H_
7 7
8 #include <ppapi/c/pp_instance.h> 8 #include <ppapi/c/pp_instance.h>
9 #include <ppapi/c/ppb.h> 9 #include <ppapi/c/ppb.h>
10 #include <pthread.h> 10 #include <pthread.h>
11 #include <map> 11 #include <map>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "nacl_mounts/kernel_object.h" 15 #include "nacl_io/kernel_object.h"
16 #include "nacl_mounts/mount.h" 16 #include "nacl_io/mount.h"
17 #include "nacl_mounts/ostypes.h" 17 #include "nacl_io/ostypes.h"
18 #include "nacl_mounts/path.h" 18 #include "nacl_io/path.h"
19 19
20 class KernelHandle; 20 class KernelHandle;
21 class Mount; 21 class Mount;
22 class MountNode; 22 class MountNode;
23 class PepperInterface; 23 class PepperInterface;
24 24
25 // KernelProxy provide one-to-one mapping for libc kernel calls. Calls to the 25 // KernelProxy provide one-to-one mapping for libc kernel calls. Calls to the
26 // proxy will result in IO access to the provided Mount and MountNode objects. 26 // proxy will result in IO access to the provided Mount and MountNode objects.
27 class KernelProxy : protected KernelObject { 27 class KernelProxy : protected KernelObject {
28 public: 28 public:
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 MountFactoryMap_t factories_; 93 MountFactoryMap_t factories_;
94 int dev_; 94 int dev_;
95 PepperInterface* ppapi_; 95 PepperInterface* ppapi_;
96 96
97 static KernelProxy *s_instance_; 97 static KernelProxy *s_instance_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(KernelProxy); 99 DISALLOW_COPY_AND_ASSIGN(KernelProxy);
100 }; 100 };
101 101
102 #endif // LIBRARIES_NACL_MOUNTS_KERNEL_PROXY_H_ 102 #endif // LIBRARIES_NACL_MOUNTS_KERNEL_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698