| 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 // Implements the untrusted side of the PPB_GetInterface method. | 5 // Implements the untrusted side of the PPB_GetInterface method. |
| 6 | 6 |
| 7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" | 7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h" | 10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true }, | 79 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true }, |
| 80 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0, | 80 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0, |
| 81 PluginInputEvent::GetMouseInterface1_0(), true }, | 81 PluginInputEvent::GetMouseInterface1_0(), true }, |
| 82 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1, | 82 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1, |
| 83 PluginInputEvent::GetMouseInterface1_1(), true }, | 83 PluginInputEvent::GetMouseInterface1_1(), true }, |
| 84 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true }, | 84 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true }, |
| 85 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1, | 85 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1, |
| 86 PluginNetAddressPrivate::GetInterface0_1(), true }, | 86 PluginNetAddressPrivate::GetInterface0_1(), true }, |
| 87 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0, | 87 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0, |
| 88 PluginNetAddressPrivate::GetInterface1_0(), true }, | 88 PluginNetAddressPrivate::GetInterface1_0(), true }, |
| 89 { PPB_OPENGLES2_INTERFACE, PluginGraphics3D::GetOpenGLESInterface(), | 89 { PPB_OPENGLES2_INTERFACE_1_0, PluginGraphics3D::GetOpenGLESInterface(), |
| 90 true }, |
| 91 { PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE_1_0, |
| 92 PluginGraphics3D::GetOpenGLESInstancedArraysInterface(), |
| 93 true }, |
| 94 { PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE_1_0, |
| 95 PluginGraphics3D::GetOpenGLESFramebufferBlitInterface(), |
| 96 true }, |
| 97 { PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE_1_0, |
| 98 PluginGraphics3D::GetOpenGLESFramebufferMultisampleInterface(), |
| 99 true }, |
| 100 { PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE_1_0, |
| 101 PluginGraphics3D::GetOpenGLESChromiumEnableFeatureInterface(), |
| 102 true }, |
| 103 { PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, |
| 104 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface(), |
| 90 true }, | 105 true }, |
| 91 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true }, | 106 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true }, |
| 92 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true }, | 107 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true }, |
| 93 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(), | 108 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(), |
| 94 true }, | 109 true }, |
| 95 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true }, | 110 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true }, |
| 96 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true }, | 111 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true }, |
| 97 { PPB_UDPSOCKET_PRIVATE_INTERFACE, PluginUDPSocketPrivate::GetInterface(), | 112 { PPB_UDPSOCKET_PRIVATE_INTERFACE, PluginUDPSocketPrivate::GetInterface(), |
| 98 true }, | 113 true }, |
| 99 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true }, | 114 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true }, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 interface_name, NaClSrpcErrorString(srpc_result)); | 163 interface_name, NaClSrpcErrorString(srpc_result)); |
| 149 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { | 164 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { |
| 150 interface_map[index].ppb_interface = NULL; | 165 interface_map[index].ppb_interface = NULL; |
| 151 ppb_interface = NULL; | 166 ppb_interface = NULL; |
| 152 } | 167 } |
| 153 interface_map[index].needs_browser_check = false; | 168 interface_map[index].needs_browser_check = false; |
| 154 return ppb_interface; | 169 return ppb_interface; |
| 155 } | 170 } |
| 156 | 171 |
| 157 } // namespace ppapi_proxy | 172 } // namespace ppapi_proxy |
| OLD | NEW |