Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2012 The Chromium 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 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_ | 7 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_ |
| 8 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_ | 8 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_ |
| 9 | 9 |
| 10 #if defined(__native_client__) | |
| 10 #include "native_client/src/include/portability.h" | 11 #include "native_client/src/include/portability.h" |
| 12 #endif | |
| 11 #include "ppapi/nacl_irt/irt_ppapi.h" | 13 #include "ppapi/nacl_irt/irt_ppapi.h" |
| 12 | 14 |
| 13 EXTERN_C_BEGIN | 15 #ifdef __cplusplus |
| 16 extern "C" { | |
| 17 #endif | |
| 14 | 18 |
| 15 // The entry point for the main thread of the PPAPI plugin process. | 19 // The entry point for the main thread of the PPAPI plugin process. |
| 16 int PpapiPluginMain(void); | 20 int PpapiPluginMain(void); |
| 17 | 21 |
| 18 void PpapiPluginRegisterThreadCreator( | 22 void PpapiPluginRegisterThreadCreator( |
| 19 const struct PP_ThreadFunctions* new_funcs); | 23 const struct PP_ThreadFunctions* new_funcs); |
| 20 | 24 |
| 21 EXTERN_C_END | 25 #ifdef __cplusplus |
| 26 } | |
| 27 #endif | |
| 28 | |
| 29 #if !defined(__native_client__) | |
| 30 // For non-SFI mode, we expose two more functions, assuming this is compiled | |
| 31 // with c++ compiler. | |
| 32 | |
| 33 namespace ppapi { | |
| 34 namespace proxy { | |
|
dmichael (off chromium)
2014/02/13 19:00:34
This feels weird to reference ppapi::proxy at all
Mark Seaborn
2014/02/14 01:55:36
I intended ppapi/nacl_irt/ to be used just for pub
hidehiko
2014/02/14 10:49:05
Reverted this file. See also my reply to plugin_ma
| |
| 35 | |
| 36 // Overwrites the IPC channels for the browser and the renderer by the given | |
| 37 // FD #s. | |
| 38 void SetIPCFileDescriptors(int browser_ipc_fd, int renderer_ipc_fd); | |
| 39 | |
| 40 // Waits for the initialization of the dispatchers for the PPAPI IPC channels. | |
| 41 void WaitForPpapiStartEvent(); | |
| 42 | |
| 43 } // namespace proxy | |
| 44 } // namespace ppapi | |
| 45 | |
| 46 #endif | |
| 47 | |
| 22 | 48 |
| 23 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_ | 49 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_ |
| OLD | NEW |