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 "native_client/src/untrusted/irt/irt_ppapi.h" | 13 #include "native_client/src/untrusted/irt/irt_ppapi.h" |
12 | 14 |
13 EXTERN_C_BEGIN | 15 #ifdef __cplusplus |
| 16 extern "C" { |
| 17 #endif |
14 | 18 |
15 // Initialize srpc connection to the browser. Some APIs like manifest file | 19 // Initialize srpc connection to the browser. Some APIs like manifest file |
16 // opening do not need full ppapi initialization and so can be used after | 20 // opening do not need full ppapi initialization and so can be used after |
17 // this function returns. | 21 // this function returns. |
18 int IrtInit(void); | 22 int IrtInit(void); |
19 | 23 |
20 // The entry point for the main thread of the PPAPI plugin process. | 24 // The entry point for the main thread of the PPAPI plugin process. |
21 int PpapiPluginMain(void); | 25 int PpapiPluginMain(void); |
22 | 26 |
23 void PpapiPluginRegisterThreadCreator( | 27 void PpapiPluginRegisterThreadCreator( |
24 const struct PP_ThreadFunctions* new_funcs); | 28 const struct PP_ThreadFunctions* new_funcs); |
25 | 29 |
26 EXTERN_C_END | 30 #ifdef __cplusplus |
| 31 } |
| 32 #endif |
| 33 |
| 34 #if !defined(__native_client__) |
| 35 // The following functions are available only for non-SFI mode. |
| 36 namespace base { |
| 37 class WaitableEvent; |
| 38 } // namespace base |
| 39 |
| 40 namespace ppapi { |
| 41 namespace proxy { |
| 42 void SetPpapiStartEvent(base::WaitableEvent* ppapi_start_event); |
| 43 void SetIPCFileDescriptors(int browser_ipc_fd, int renderer_ipc_fd); |
| 44 } // namespace proxy |
| 45 } // namespace ppapi |
| 46 #endif |
27 | 47 |
28 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_ | 48 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PPRUNTIME_H_ |
OLD | NEW |