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 // 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 true }, | 85 true }, |
86 { PPB_TESTING_DEV_INTERFACE_0_7, PluginTesting::GetInterface(), true }, | 86 { PPB_TESTING_DEV_INTERFACE_0_7, PluginTesting::GetInterface(), true }, |
87 { PPB_TESTING_DEV_INTERFACE_0_8, PluginTesting::GetInterface(), true }, | 87 { PPB_TESTING_DEV_INTERFACE_0_8, PluginTesting::GetInterface(), true }, |
88 { PPB_UDPSOCKET_PRIVATE_INTERFACE, PluginUDPSocketPrivate::GetInterface(), | 88 { PPB_UDPSOCKET_PRIVATE_INTERFACE, PluginUDPSocketPrivate::GetInterface(), |
89 true }, | 89 true }, |
90 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true }, | 90 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true }, |
91 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true }, | 91 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true }, |
92 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(), | 92 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(), |
93 true }, | 93 true }, |
94 { PPB_VAR_INTERFACE, PluginVar::GetInterface(), true }, | 94 { PPB_VAR_INTERFACE, PluginVar::GetInterface(), true }, |
| 95 { PPB_VAR_INTERFACE_1_0, PluginVar::GetInterface1_0(), true }, |
95 { PPB_WHEEL_INPUT_EVENT_INTERFACE, PluginInputEvent::GetWheelInterface(), | 96 { PPB_WHEEL_INPUT_EVENT_INTERFACE, PluginInputEvent::GetWheelInterface(), |
96 true }, | 97 true }, |
97 { PPB_WIDGET_DEV_INTERFACE, PluginWidget::GetInterface(), true }, | 98 { PPB_WIDGET_DEV_INTERFACE, PluginWidget::GetInterface(), true }, |
98 { PPB_ZOOM_DEV_INTERFACE, PluginZoom::GetInterface(), true }, | 99 { PPB_ZOOM_DEV_INTERFACE, PluginZoom::GetInterface(), true }, |
99 }; | 100 }; |
100 | 101 |
101 } // namespace | 102 } // namespace |
102 | 103 |
103 // Returns the pointer to the interface proxy or NULL if not yet supported. | 104 // Returns the pointer to the interface proxy or NULL if not yet supported. |
104 // On the first invocation for a given interface that has proxy support, | 105 // On the first invocation for a given interface that has proxy support, |
(...skipping 28 matching lines...) Expand all Loading... |
133 interface_name, NaClSrpcErrorString(srpc_result)); | 134 interface_name, NaClSrpcErrorString(srpc_result)); |
134 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { | 135 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { |
135 interface_map[index].ppb_interface = NULL; | 136 interface_map[index].ppb_interface = NULL; |
136 ppb_interface = NULL; | 137 ppb_interface = NULL; |
137 } | 138 } |
138 interface_map[index].needs_browser_check = false; | 139 interface_map[index].needs_browser_check = false; |
139 return ppb_interface; | 140 return ppb_interface; |
140 } | 141 } |
141 | 142 |
142 } // namespace ppapi_proxy | 143 } // namespace ppapi_proxy |
OLD | NEW |