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

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

Issue 23005005: [NaCl SDK] nacl_io: Add initial implementations of kill and signal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 #ifndef LIBRARIES_NACL_IO_KERNEL_PROXY_H_ 5 #ifndef LIBRARIES_NACL_IO_KERNEL_PROXY_H_
6 #define LIBRARIES_NACL_IO_KERNEL_PROXY_H_ 6 #define LIBRARIES_NACL_IO_KERNEL_PROXY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 virtual int socket(int domain, int type, int protocol); 176 virtual int socket(int domain, int type, int protocol);
177 virtual int socketpair(int domain, int type, int protocol, int* sv); 177 virtual int socketpair(int domain, int type, int protocol, int* sv);
178 #endif // PROVIDES_SOCKET_API 178 #endif // PROVIDES_SOCKET_API
179 179
180 protected: 180 protected:
181 MountFactoryMap_t factories_; 181 MountFactoryMap_t factories_;
182 sdk_util::ScopedRef<MountSocket> socket_mount_; 182 sdk_util::ScopedRef<MountSocket> socket_mount_;
183 int dev_; 183 int dev_;
184 PepperInterface* ppapi_; 184 PepperInterface* ppapi_;
185 static KernelProxy *s_instance_; 185 static KernelProxy *s_instance_;
186 sighandler_t sigwinch_handler_;
186 #ifdef PROVIDES_SOCKET_API 187 #ifdef PROVIDES_SOCKET_API
187 HostResolver host_resolver_; 188 HostResolver host_resolver_;
188 #endif 189 #endif
189 190
190 #ifdef PROVIDES_SOCKET_API 191 #ifdef PROVIDES_SOCKET_API
191 virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle); 192 virtual int AcquireSocketHandle(int fd, ScopedKernelHandle* handle);
192 #endif 193 #endif
193 194
195 ScopedEventEmitter signal_emitter_;
194 DISALLOW_COPY_AND_ASSIGN(KernelProxy); 196 DISALLOW_COPY_AND_ASSIGN(KernelProxy);
195 }; 197 };
196 198
197 } // namespace nacl_io 199 } // namespace nacl_io
198 200
199 #endif // LIBRARIES_NACL_IO_KERNEL_PROXY_H_ 201 #endif // LIBRARIES_NACL_IO_KERNEL_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698