| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <sys/nacl_imc_api.h> | 5 #include <sys/nacl_imc_api.h> |
| 6 #include <sys/nacl_syscalls.h> | 6 #include <sys/nacl_syscalls.h> |
| 7 | 7 |
| 8 #include "native_client/src/shared/platform/nacl_check.h" | 8 #include "native_client/src/shared/platform/nacl_check.h" |
| 9 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" | 9 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" |
| 10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_core.h" | 10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_core.h" |
| 11 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_var.h" | 11 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_var.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 PpapiPluginRegisterDefaultThreadCreator(); | 175 PpapiPluginRegisterDefaultThreadCreator(); |
| 176 // Designate this as the main thread for PPB_Core::IsMainThread(). | 176 // Designate this as the main thread for PPB_Core::IsMainThread(). |
| 177 ppapi_proxy::PluginCore::MarkMainThread(); | 177 ppapi_proxy::PluginCore::MarkMainThread(); |
| 178 if (!NaClSrpcAcceptClientConnection(PppRpcs::srpc_methods)) { | 178 if (!NaClSrpcAcceptClientConnection(PppRpcs::srpc_methods)) { |
| 179 return 1; | 179 return 1; |
| 180 } | 180 } |
| 181 NaClSrpcModuleFini(); | 181 NaClSrpcModuleFini(); |
| 182 | 182 |
| 183 return 0; | 183 return 0; |
| 184 } | 184 } |
| OLD | NEW |