OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #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 "ppapi/c/dev/ppb_memory_dev.h" | 8 #include "ppapi/c/dev/ppb_memory_dev.h" |
9 #include "ppapi/c/dev/ppb_websocket_dev.h" | |
10 #include "ppapi/c/dev/ppp_find_dev.h" | 9 #include "ppapi/c/dev/ppp_find_dev.h" |
11 #include "ppapi/c/dev/ppp_printing_dev.h" | 10 #include "ppapi/c/dev/ppp_printing_dev.h" |
12 #include "ppapi/c/dev/ppp_scrollbar_dev.h" | 11 #include "ppapi/c/dev/ppp_scrollbar_dev.h" |
13 #include "ppapi/c/dev/ppp_selection_dev.h" | 12 #include "ppapi/c/dev/ppp_selection_dev.h" |
14 #include "ppapi/c/dev/ppp_widget_dev.h" | 13 #include "ppapi/c/dev/ppp_widget_dev.h" |
15 #include "ppapi/c/dev/ppp_zoom_dev.h" | 14 #include "ppapi/c/dev/ppp_zoom_dev.h" |
16 #include "ppapi/c/pp_module.h" | 15 #include "ppapi/c/pp_module.h" |
17 #include "ppapi/c/ppb.h" | 16 #include "ppapi/c/ppb.h" |
18 #include "ppapi/c/ppb_core.h" | 17 #include "ppapi/c/ppb_core.h" |
19 #include "ppapi/c/ppb_var.h" | 18 #include "ppapi/c/ppb_var.h" |
20 #include "ppapi/c/ppb_var_array_buffer.h" | 19 #include "ppapi/c/ppb_var_array_buffer.h" |
| 20 #include "ppapi/c/ppb_websocket.h" |
21 #include "ppapi/c/ppp_input_event.h" | 21 #include "ppapi/c/ppp_input_event.h" |
22 #include "ppapi/c/ppp_instance.h" | 22 #include "ppapi/c/ppp_instance.h" |
23 #include "ppapi/c/ppp_messaging.h" | 23 #include "ppapi/c/ppp_messaging.h" |
24 #include "ppapi/c/ppp_mouse_lock.h" | 24 #include "ppapi/c/ppp_mouse_lock.h" |
25 #include "native_client/src/shared/ppapi_proxy/ppp_instance_combined.h" | 25 #include "native_client/src/shared/ppapi_proxy/ppp_instance_combined.h" |
26 #include "native_client/src/untrusted/irt/irt_ppapi.h" | 26 #include "native_client/src/untrusted/irt/irt_ppapi.h" |
27 | 27 |
28 struct NaClSrpcChannel; | 28 struct NaClSrpcChannel; |
29 | 29 |
30 namespace ppapi_proxy { | 30 namespace ppapi_proxy { |
(...skipping 18 matching lines...) Expand all Loading... |
49 // Safe version CHECK's for NULL. | 49 // Safe version CHECK's for NULL. |
50 const void* GetBrowserInterface(const char* interface_name); | 50 const void* GetBrowserInterface(const char* interface_name); |
51 const void* GetBrowserInterfaceSafe(const char* interface_name); | 51 const void* GetBrowserInterfaceSafe(const char* interface_name); |
52 // Functions marked "shared" are to be provided by both the browser and the | 52 // Functions marked "shared" are to be provided by both the browser and the |
53 // plugin side of the proxy, so they can be used by the shared proxy code | 53 // plugin side of the proxy, so they can be used by the shared proxy code |
54 // under both trusted and untrusted compilation. | 54 // under both trusted and untrusted compilation. |
55 const PPB_Core* PPBCoreInterface(); // shared | 55 const PPB_Core* PPBCoreInterface(); // shared |
56 const PPB_Memory_Dev* PPBMemoryInterface(); // shared | 56 const PPB_Memory_Dev* PPBMemoryInterface(); // shared |
57 const PPB_Var* PPBVarInterface(); // shared | 57 const PPB_Var* PPBVarInterface(); // shared |
58 const PPB_VarArrayBuffer* PPBVarArrayBufferInterface(); // shared | 58 const PPB_VarArrayBuffer* PPBVarArrayBufferInterface(); // shared |
59 const PPB_WebSocket_Dev* PPBWebSocketInterface(); | 59 const PPB_WebSocket* PPBWebSocketInterface(); |
60 | 60 |
61 // Support for getting PPP_ plugin interfaces. | 61 // Support for getting PPP_ plugin interfaces. |
62 // Safe version CHECK's for NULL. | 62 // Safe version CHECK's for NULL. |
63 // Since no PppRpcServer function will be called if the interface is NULL, | 63 // Since no PppRpcServer function will be called if the interface is NULL, |
64 // safe version is used to define interface getters below. | 64 // safe version is used to define interface getters below. |
65 const void* GetPluginInterface(const char* interface_name); | 65 const void* GetPluginInterface(const char* interface_name); |
66 const void* GetPluginInterfaceSafe(const char* interface_name); | 66 const void* GetPluginInterfaceSafe(const char* interface_name); |
67 const PPP_Find_Dev* PPPFindInterface(); | 67 const PPP_Find_Dev* PPPFindInterface(); |
68 const PPP_InputEvent* PPPInputEventInterface(); | 68 const PPP_InputEvent* PPPInputEventInterface(); |
69 PPP_Instance_Combined* PPPInstanceInterface(); | 69 PPP_Instance_Combined* PPPInstanceInterface(); |
70 const PPP_Messaging* PPPMessagingInterface(); | 70 const PPP_Messaging* PPPMessagingInterface(); |
71 const PPP_MouseLock* PPPMouseLockInterface(); | 71 const PPP_MouseLock* PPPMouseLockInterface(); |
72 const PPP_Printing_Dev* PPPPrintingInterface(); | 72 const PPP_Printing_Dev* PPPPrintingInterface(); |
73 const PPP_Scrollbar_Dev* PPPScrollbarInterface(); | 73 const PPP_Scrollbar_Dev* PPPScrollbarInterface(); |
74 const PPP_Selection_Dev* PPPSelectionInterface(); | 74 const PPP_Selection_Dev* PPPSelectionInterface(); |
75 const PPP_Widget_Dev* PPPWidgetInterface(); | 75 const PPP_Widget_Dev* PPPWidgetInterface(); |
76 const PPP_Zoom_Dev* PPPZoomInterface(); | 76 const PPP_Zoom_Dev* PPPZoomInterface(); |
77 | 77 |
78 // Get thread creation/join functions. | 78 // Get thread creation/join functions. |
79 const struct PP_ThreadFunctions* GetThreadCreator(); | 79 const struct PP_ThreadFunctions* GetThreadCreator(); |
80 | 80 |
81 // PPAPI constants used in the proxy. | 81 // PPAPI constants used in the proxy. |
82 extern const PP_Resource kInvalidResourceId; | 82 extern const PP_Resource kInvalidResourceId; |
83 | 83 |
84 } // namespace ppapi_proxy | 84 } // namespace ppapi_proxy |
85 | 85 |
86 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 86 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
OLD | NEW |