| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |