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

Side by Side Diff: src/trusted/reverse_service/reverse_service.cc

Issue 261683002: Make a NaClDesc ctor for creating descs from NaClFileInfo. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: make it posix file descriptor Created 6 years, 7 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 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #define NACL_LOG_MODULE_NAME "reverse_service" 7 #define NACL_LOG_MODULE_NAME "reverse_service"
8 8
9 #include "native_client/src/trusted/reverse_service/reverse_service.h" 9 #include "native_client/src/trusted/reverse_service/reverse_service.h"
10 10
(...skipping 10 matching lines...) Expand all
21 #include "native_client/src/shared/platform/nacl_log.h" 21 #include "native_client/src/shared/platform/nacl_log.h"
22 #include "native_client/src/shared/platform/nacl_sync.h" 22 #include "native_client/src/shared/platform/nacl_sync.h"
23 #include "native_client/src/shared/platform/nacl_sync_checked.h" 23 #include "native_client/src/shared/platform/nacl_sync_checked.h"
24 #include "native_client/src/shared/platform/nacl_threads.h" 24 #include "native_client/src/shared/platform/nacl_threads.h"
25 #include "native_client/src/shared/srpc/nacl_srpc.h" 25 #include "native_client/src/shared/srpc/nacl_srpc.h"
26 26
27 #include "native_client/src/trusted/desc/nacl_desc_invalid.h" 27 #include "native_client/src/trusted/desc/nacl_desc_invalid.h"
28 #include "native_client/src/trusted/desc/nacl_desc_io.h" 28 #include "native_client/src/trusted/desc/nacl_desc_io.h"
29 29
30 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h" 30 #include "native_client/src/trusted/service_runtime/include/sys/fcntl.h"
31 #include "native_client/src/trusted/validator/nacl_file_info.h"
32 31
33 namespace { 32 namespace {
34 33
35 // ReverseInterfaceWrapper wraps a C++ interface and provides 34 // ReverseInterfaceWrapper wraps a C++ interface and provides
36 // C-callable wrapper functions for use by the underlying C 35 // C-callable wrapper functions for use by the underlying C
37 // implementation. 36 // implementation.
38 37
39 struct ReverseInterfaceWrapper { 38 struct ReverseInterfaceWrapper {
40 NaClReverseInterface base NACL_IS_REFCOUNT_SUBCLASS; 39 NaClReverseInterface base NACL_IS_REFCOUNT_SUBCLASS;
41 nacl::ReverseInterface* iface; 40 nacl::ReverseInterface* iface;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 266
268 void ReverseService::IncrThreadCount() { 267 void ReverseService::IncrThreadCount() {
269 NACL_VTBL(NaClReverseService, service_)->ThreadCountIncr(service_); 268 NACL_VTBL(NaClReverseService, service_)->ThreadCountIncr(service_);
270 } 269 }
271 270
272 void ReverseService::DecrThreadCount() { 271 void ReverseService::DecrThreadCount() {
273 NACL_VTBL(NaClReverseService, service_)->ThreadCountDecr(service_); 272 NACL_VTBL(NaClReverseService, service_)->ThreadCountDecr(service_);
274 } 273 }
275 274
276 } // namespace nacl 275 } // namespace nacl
OLDNEW
« no previous file with comments | « src/trusted/manifest_name_service_proxy/manifest_proxy.c ('k') | src/trusted/reverse_service/reverse_service_c.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698