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 #include "ppapi/proxy/interface_list.h" | 5 #include "ppapi/proxy/interface_list.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" | 8 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
9 #include "ppapi/c/dev/ppb_buffer_dev.h" | 9 #include "ppapi/c/dev/ppb_buffer_dev.h" |
10 #include "ppapi/c/dev/ppb_char_set_dev.h" | 10 #include "ppapi/c/dev/ppb_char_set_dev.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // for message routing. Others have different implementations between the | 171 // for message routing. Others have different implementations between the |
172 // proxy and the impl and there's no obvious message routing. | 172 // proxy and the impl and there's no obvious message routing. |
173 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); | 173 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); |
174 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create); | 174 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create); |
175 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE, | 175 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE, |
176 PPB_Core_Proxy::GetPPB_Core_Interface()); | 176 PPB_Core_Proxy::GetPPB_Core_Interface()); |
177 AddPPB(PPB_MESSAGELOOP_DEV_INTERFACE_0_1, API_ID_NONE, | 177 AddPPB(PPB_MESSAGELOOP_DEV_INTERFACE_0_1, API_ID_NONE, |
178 PPB_MessageLoop_Proxy::GetInterface()); | 178 PPB_MessageLoop_Proxy::GetInterface()); |
179 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE, | 179 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE, |
180 PPB_OpenGLES2_Shared::GetInterface()); | 180 PPB_OpenGLES2_Shared::GetInterface()); |
| 181 AddPPB(PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0, API_ID_NONE, |
| 182 PPB_OpenGLES2_Shared::GetInstancedArraysInterface()); |
| 183 AddPPB(PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0, API_ID_NONE, |
| 184 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface()); |
| 185 AddPPB(PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0, API_ID_NONE, |
| 186 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface()); |
| 187 AddPPB(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0, API_ID_NONE, |
| 188 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface()); |
| 189 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0, API_ID_NONE, |
| 190 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface()); |
181 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, | 191 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, |
182 PPB_Var_Shared::GetVarInterface1_1()); | 192 PPB_Var_Shared::GetVarInterface1_1()); |
183 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, | 193 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, |
184 PPB_Var_Shared::GetVarInterface1_0()); | 194 PPB_Var_Shared::GetVarInterface1_0()); |
185 | 195 |
186 AddFlashInterfaces(); | 196 AddFlashInterfaces(); |
187 | 197 |
188 // PPB (browser) interfaces. | 198 // PPB (browser) interfaces. |
189 // Do not add more stuff here, they should be added to interface_list*.h | 199 // Do not add more stuff here, they should be added to interface_list*.h |
190 // TODO(brettw) remove these. | 200 // TODO(brettw) remove these. |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 AddPPB(info->name, info->id, info->interface_ptr); | 352 AddPPB(info->name, info->id, info->interface_ptr); |
343 } | 353 } |
344 | 354 |
345 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 355 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
346 AddProxy(info->id, info->create_proxy); | 356 AddProxy(info->id, info->create_proxy); |
347 AddPPP(info->name, info->id, info->interface_ptr); | 357 AddPPP(info->name, info->id, info->interface_ptr); |
348 } | 358 } |
349 | 359 |
350 } // namespace proxy | 360 } // namespace proxy |
351 } // namespace ppapi | 361 } // namespace ppapi |
OLD | NEW |