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