OLD | NEW |
1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 The Native Client 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 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
7 | 7 |
8 #include "native_client/src/untrusted/irt/irt_ppapi.h" | 8 #include "native_client/src/untrusted/irt/irt_ppapi.h" |
9 #include "native_client/src/third_party/ppapi/c/dev/ppb_memory_dev.h" | 9 #include "native_client/src/third_party/ppapi/c/dev/ppb_memory_dev.h" |
10 #include "native_client/src/third_party/ppapi/c/dev/ppb_var_deprecated.h" | 10 #include "native_client/src/third_party/ppapi/c/dev/ppb_var_deprecated.h" |
11 #include "native_client/src/third_party/ppapi/c/pp_module.h" | 11 #include "native_client/src/third_party/ppapi/c/pp_module.h" |
12 #include "native_client/src/third_party/ppapi/c/ppb.h" | 12 #include "native_client/src/third_party/ppapi/c/ppb.h" |
13 #include "native_client/src/third_party/ppapi/c/ppb_core.h" | 13 #include "native_client/src/third_party/ppapi/c/ppb_core.h" |
14 #include "native_client/src/third_party/ppapi/c/ppb_var.h" | 14 #include "native_client/src/third_party/ppapi/c/ppb_var.h" |
| 15 #include "native_client/src/third_party/ppapi/c/ppp_input_event.h" |
15 #include "native_client/src/third_party/ppapi/c/ppp_messaging.h" | 16 #include "native_client/src/third_party/ppapi/c/ppp_messaging.h" |
16 | 17 |
17 struct NaClSrpcChannel; | 18 struct NaClSrpcChannel; |
18 | 19 |
19 namespace ppapi_proxy { | 20 namespace ppapi_proxy { |
20 | 21 |
21 // The main SRPC channel is that used to handle foreground (main thread) | 22 // The main SRPC channel is that used to handle foreground (main thread) |
22 // RPC traffic. | 23 // RPC traffic. |
23 NaClSrpcChannel* GetMainSrpcChannel(); | 24 NaClSrpcChannel* GetMainSrpcChannel(); |
24 void SetMainSrpcChannel(NaClSrpcChannel* channel); | 25 void SetMainSrpcChannel(NaClSrpcChannel* channel); |
(...skipping 12 matching lines...) Expand all Loading... |
37 // Support for getting PPB_ browser interfaces. | 38 // Support for getting PPB_ browser interfaces. |
38 // Safe version CHECK's for NULL. | 39 // Safe version CHECK's for NULL. |
39 const void* GetBrowserInterface(const char* interface_name); | 40 const void* GetBrowserInterface(const char* interface_name); |
40 const void* GetBrowserInterfaceSafe(const char* interface_name); | 41 const void* GetBrowserInterfaceSafe(const char* interface_name); |
41 // Functions marked "shared" are to be provided by both the browser and the | 42 // Functions marked "shared" are to be provided by both the browser and the |
42 // plugin side of the proxy, so they can be used by the shared proxy code | 43 // plugin side of the proxy, so they can be used by the shared proxy code |
43 // under both trusted and untrusted compilation. | 44 // under both trusted and untrusted compilation. |
44 const PPB_Core* PPBCoreInterface(); // shared | 45 const PPB_Core* PPBCoreInterface(); // shared |
45 const PPB_Memory_Dev* PPBMemoryInterface(); // shared | 46 const PPB_Memory_Dev* PPBMemoryInterface(); // shared |
46 const PPB_Var* PPBVarInterface(); // shared | 47 const PPB_Var* PPBVarInterface(); // shared |
| 48 const PPP_InputEvent* PPPInputEventInterface(); |
47 const PPP_Messaging* PPPMessagingInterface(); | 49 const PPP_Messaging* PPPMessagingInterface(); |
48 | 50 |
49 // Get thread creation/join functions. | 51 // Get thread creation/join functions. |
50 const struct PP_ThreadFunctions* GetThreadCreator(); | 52 const struct PP_ThreadFunctions* GetThreadCreator(); |
51 | 53 |
52 // PPAPI constants used in the proxy. | 54 // PPAPI constants used in the proxy. |
53 extern const PP_Resource kInvalidResourceId; | 55 extern const PP_Resource kInvalidResourceId; |
54 | 56 |
55 } // namespace ppapi_proxy | 57 } // namespace ppapi_proxy |
56 | 58 |
57 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 59 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
OLD | NEW |