| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 { PPB_FONT_DEV_INTERFACE, PluginFont::GetInterface(), true }, | 70 { PPB_FONT_DEV_INTERFACE, PluginFont::GetInterface(), true }, |
| 71 { PPB_FULLSCREEN_INTERFACE, PluginFullscreen::GetInterface(), true }, | 71 { PPB_FULLSCREEN_INTERFACE, PluginFullscreen::GetInterface(), true }, |
| 72 { PPB_GAMEPAD_DEV_INTERFACE, PluginGamepad::GetInterface(), true }, | 72 { PPB_GAMEPAD_DEV_INTERFACE, PluginGamepad::GetInterface(), true }, |
| 73 { PPB_GRAPHICS_2D_INTERFACE, PluginGraphics2D::GetInterface(), true }, | 73 { PPB_GRAPHICS_2D_INTERFACE, PluginGraphics2D::GetInterface(), true }, |
| 74 { PPB_GRAPHICS_3D_INTERFACE, PluginGraphics3D::GetInterface(), true }, | 74 { PPB_GRAPHICS_3D_INTERFACE, PluginGraphics3D::GetInterface(), true }, |
| 75 { PPB_IMAGEDATA_INTERFACE, PluginImageData::GetInterface(), true }, | 75 { PPB_IMAGEDATA_INTERFACE, PluginImageData::GetInterface(), true }, |
| 76 { PPB_INPUT_EVENT_INTERFACE, PluginInputEvent::GetInterface(), true }, | 76 { PPB_INPUT_EVENT_INTERFACE, PluginInputEvent::GetInterface(), true }, |
| 77 { PPB_INSTANCE_INTERFACE, PluginInstance::GetInterface(), true }, | 77 { PPB_INSTANCE_INTERFACE, PluginInstance::GetInterface(), true }, |
| 78 { PPB_KEYBOARD_INPUT_EVENT_INTERFACE, | 78 { PPB_KEYBOARD_INPUT_EVENT_INTERFACE, |
| 79 PluginInputEvent::GetKeyboardInterface(), true }, | 79 PluginInputEvent::GetKeyboardInterface(), true }, |
| 80 { PPB_KEYBOARD_INPUT_EVENT_DEV_INTERFACE, |
| 81 PluginInputEvent::GetKeyboardInterface_Dev(), true }, |
| 80 { PPB_MEMORY_DEV_INTERFACE, PluginMemory::GetInterface(), true }, | 82 { PPB_MEMORY_DEV_INTERFACE, PluginMemory::GetInterface(), true }, |
| 81 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true }, | 83 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true }, |
| 82 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0, | 84 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0, |
| 83 PluginInputEvent::GetMouseInterface1_0(), true }, | 85 PluginInputEvent::GetMouseInterface1_0(), true }, |
| 84 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1, | 86 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1, |
| 85 PluginInputEvent::GetMouseInterface1_1(), true }, | 87 PluginInputEvent::GetMouseInterface1_1(), true }, |
| 86 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true }, | 88 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true }, |
| 87 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1, | 89 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1, |
| 88 PluginNetAddressPrivate::GetInterface0_1(), true }, | 90 PluginNetAddressPrivate::GetInterface0_1(), true }, |
| 89 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0, | 91 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 interface_name, NaClSrpcErrorString(srpc_result)); | 152 interface_name, NaClSrpcErrorString(srpc_result)); |
| 151 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { | 153 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { |
| 152 interface_map[index].ppb_interface = NULL; | 154 interface_map[index].ppb_interface = NULL; |
| 153 ppb_interface = NULL; | 155 ppb_interface = NULL; |
| 154 } | 156 } |
| 155 interface_map[index].needs_browser_check = false; | 157 interface_map[index].needs_browser_check = false; |
| 156 return ppb_interface; | 158 return ppb_interface; |
| 157 } | 159 } |
| 158 | 160 |
| 159 } // namespace ppapi_proxy | 161 } // namespace ppapi_proxy |
| OLD | NEW |