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 24 matching lines...) Expand all Loading... |
35 #include "ppapi/c/ppb_image_data.h" | 35 #include "ppapi/c/ppb_image_data.h" |
36 #include "ppapi/c/ppb_input_event.h" | 36 #include "ppapi/c/ppb_input_event.h" |
37 #include "ppapi/c/ppb_instance.h" | 37 #include "ppapi/c/ppb_instance.h" |
38 #include "ppapi/c/ppb_messaging.h" | 38 #include "ppapi/c/ppb_messaging.h" |
39 #include "ppapi/c/ppb_mouse_lock.h" | 39 #include "ppapi/c/ppb_mouse_lock.h" |
40 #include "ppapi/c/ppb_opengles2.h" | 40 #include "ppapi/c/ppb_opengles2.h" |
41 #include "ppapi/c/ppb_url_loader.h" | 41 #include "ppapi/c/ppb_url_loader.h" |
42 #include "ppapi/c/ppb_url_request_info.h" | 42 #include "ppapi/c/ppb_url_request_info.h" |
43 #include "ppapi/c/ppb_url_response_info.h" | 43 #include "ppapi/c/ppb_url_response_info.h" |
44 #include "ppapi/c/ppb_var.h" | 44 #include "ppapi/c/ppb_var.h" |
| 45 #include "ppapi/c/ppb_var_array_buffer.h" |
45 #include "ppapi/c/ppb_view.h" | 46 #include "ppapi/c/ppb_view.h" |
46 #include "ppapi/c/pp_errors.h" | 47 #include "ppapi/c/pp_errors.h" |
47 #include "ppapi/c/ppp_instance.h" | 48 #include "ppapi/c/ppp_instance.h" |
48 #include "ppapi/c/private/ppb_file_ref_private.h" | 49 #include "ppapi/c/private/ppb_file_ref_private.h" |
49 #include "ppapi/c/private/ppb_flash_clipboard.h" | 50 #include "ppapi/c/private/ppb_flash_clipboard.h" |
50 #include "ppapi/c/private/ppb_flash_file.h" | 51 #include "ppapi/c/private/ppb_flash_file.h" |
51 #include "ppapi/c/private/ppb_flash_fullscreen.h" | 52 #include "ppapi/c/private/ppb_flash_fullscreen.h" |
52 #include "ppapi/c/private/ppb_flash.h" | 53 #include "ppapi/c/private/ppb_flash.h" |
53 #include "ppapi/c/private/ppb_flash_menu.h" | 54 #include "ppapi/c/private/ppb_flash_menu.h" |
54 #include "ppapi/c/private/ppb_flash_message_loop.h" | 55 #include "ppapi/c/private/ppb_flash_message_loop.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // for message routing. Others have different implementations between the | 172 // for message routing. Others have different implementations between the |
172 // proxy and the impl and there's no obvious message routing. | 173 // proxy and the impl and there's no obvious message routing. |
173 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); | 174 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); |
174 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create); | 175 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create); |
175 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE, | 176 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE, |
176 PPB_Core_Proxy::GetPPB_Core_Interface()); | 177 PPB_Core_Proxy::GetPPB_Core_Interface()); |
177 AddPPB(PPB_MESSAGELOOP_DEV_INTERFACE_0_1, API_ID_NONE, | 178 AddPPB(PPB_MESSAGELOOP_DEV_INTERFACE_0_1, API_ID_NONE, |
178 PPB_MessageLoop_Proxy::GetInterface()); | 179 PPB_MessageLoop_Proxy::GetInterface()); |
179 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE, | 180 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE, |
180 PPB_OpenGLES2_Shared::GetInterface()); | 181 PPB_OpenGLES2_Shared::GetInterface()); |
| 182 AddPPB(PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, API_ID_NONE, |
| 183 PPB_Var_Shared::GetVarArrayBufferInterface1_0()); |
181 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, | 184 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, |
182 PPB_Var_Shared::GetVarInterface1_1()); | 185 PPB_Var_Shared::GetVarInterface1_1()); |
183 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, | 186 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, |
184 PPB_Var_Shared::GetVarInterface1_0()); | 187 PPB_Var_Shared::GetVarInterface1_0()); |
185 | 188 |
186 AddFlashInterfaces(); | 189 AddFlashInterfaces(); |
187 | 190 |
188 // PPB (browser) interfaces. | 191 // PPB (browser) interfaces. |
189 // Do not add more stuff here, they should be added to interface_list*.h | 192 // Do not add more stuff here, they should be added to interface_list*.h |
190 // TODO(brettw) remove these. | 193 // 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); | 345 AddPPB(info->name, info->id, info->interface_ptr); |
343 } | 346 } |
344 | 347 |
345 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 348 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
346 AddProxy(info->id, info->create_proxy); | 349 AddProxy(info->id, info->create_proxy); |
347 AddPPP(info->name, info->id, info->interface_ptr); | 350 AddPPP(info->name, info->id, info->interface_ptr); |
348 } | 351 } |
349 | 352 |
350 } // namespace proxy | 353 } // namespace proxy |
351 } // namespace ppapi | 354 } // namespace ppapi |
OLD | NEW |