Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc

Issue 9466042: Revert 123696 - Add Pepper support for several GL extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true }, 83 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true },
84 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0, 84 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0,
85 PluginInputEvent::GetMouseInterface1_0(), true }, 85 PluginInputEvent::GetMouseInterface1_0(), true },
86 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1, 86 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1,
87 PluginInputEvent::GetMouseInterface1_1(), true }, 87 PluginInputEvent::GetMouseInterface1_1(), true },
88 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true }, 88 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true },
89 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1, 89 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1,
90 PluginNetAddressPrivate::GetInterface0_1(), true }, 90 PluginNetAddressPrivate::GetInterface0_1(), true },
91 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0, 91 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0,
92 PluginNetAddressPrivate::GetInterface1_0(), true }, 92 PluginNetAddressPrivate::GetInterface1_0(), true },
93 { PPB_OPENGLES2_INTERFACE_1_0, PluginGraphics3D::GetOpenGLESInterface(), 93 { PPB_OPENGLES2_INTERFACE, PluginGraphics3D::GetOpenGLESInterface(),
94 true },
95 { PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE_1_0,
96 PluginGraphics3D::GetOpenGLESInstancedArraysInterface(),
97 true },
98 { PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE_1_0,
99 PluginGraphics3D::GetOpenGLESFramebufferBlitInterface(),
100 true },
101 { PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE_1_0,
102 PluginGraphics3D::GetOpenGLESFramebufferMultisampleInterface(),
103 true },
104 { PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE_1_0,
105 PluginGraphics3D::GetOpenGLESChromiumEnableFeatureInterface(),
106 true },
107 { PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0,
108 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface(),
109 true }, 94 true },
110 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true }, 95 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true },
111 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true }, 96 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true },
112 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(), 97 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(),
113 true }, 98 true },
114 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true }, 99 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true },
115 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true }, 100 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true },
116 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_2, 101 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_2,
117 PluginUDPSocketPrivate::GetInterface0_2(), true }, 102 PluginUDPSocketPrivate::GetInterface0_2(), true },
118 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_3, 103 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_3,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 interface_name, NaClSrpcErrorString(srpc_result)); 154 interface_name, NaClSrpcErrorString(srpc_result));
170 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 155 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
171 interface_map[index].ppb_interface = NULL; 156 interface_map[index].ppb_interface = NULL;
172 ppb_interface = NULL; 157 ppb_interface = NULL;
173 } 158 }
174 interface_map[index].needs_browser_check = false; 159 interface_map[index].needs_browser_check = false;
175 return ppb_interface; 160 return ppb_interface;
176 } 161 }
177 162
178 } // namespace ppapi_proxy 163 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698