| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "build/build_config.h" |
| 5 #include "native_client/src/shared/platform/nacl_log.h" | 6 #include "native_client/src/shared/platform/nacl_log.h" |
| 6 #include "native_client/src/shared/srpc/nacl_srpc.h" | 7 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 7 #include "native_client/src/untrusted/irt/irt_dev.h" | 8 #include "native_client/src/untrusted/irt/irt_dev.h" |
| 8 #include "ppapi/nacl_irt/irt_interfaces.h" | 9 #include "ppapi/nacl_irt/irt_interfaces.h" |
| 9 | 10 |
| 11 #if !defined(OS_NACL_NONSFI) |
| 12 |
| 10 namespace { | 13 namespace { |
| 11 | 14 |
| 12 const int kMaxObjectFiles = 16; | 15 const int kMaxObjectFiles = 16; |
| 13 | 16 |
| 14 int (*g_func)(int nexe_fd, | 17 int (*g_func)(int nexe_fd, |
| 15 const int* obj_file_fds, | 18 const int* obj_file_fds, |
| 16 int obj_file_fd_count); | 19 int obj_file_fd_count); |
| 17 | 20 |
| 18 void HandleLinkRequest(NaClSrpcRpc* rpc, | 21 void HandleLinkRequest(NaClSrpcRpc* rpc, |
| 19 NaClSrpcArg** in_args, | 22 NaClSrpcArg** in_args, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 NaClLog(LOG_FATAL, "NaClSrpcAcceptClientConnection() failed\n"); | 55 NaClLog(LOG_FATAL, "NaClSrpcAcceptClientConnection() failed\n"); |
| 53 } | 56 } |
| 54 } | 57 } |
| 55 | 58 |
| 56 } | 59 } |
| 57 | 60 |
| 58 const struct nacl_irt_private_pnacl_translator_link | 61 const struct nacl_irt_private_pnacl_translator_link |
| 59 nacl_irt_private_pnacl_translator_link = { | 62 nacl_irt_private_pnacl_translator_link = { |
| 60 ServeLinkRequest | 63 ServeLinkRequest |
| 61 }; | 64 }; |
| 65 |
| 66 #endif // !defined(OS_NACL_NONSFI) |
| OLD | NEW |