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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "ppapi/c/ppb_view.h" | 50 #include "ppapi/c/ppb_view.h" |
51 #include "ppapi/c/pp_errors.h" | 51 #include "ppapi/c/pp_errors.h" |
52 #include "ppapi/c/ppp_instance.h" | 52 #include "ppapi/c/ppp_instance.h" |
53 #include "ppapi/c/private/ppb_content_decryptor_private.h" | 53 #include "ppapi/c/private/ppb_content_decryptor_private.h" |
54 #include "ppapi/c/private/ppb_file_ref_private.h" | 54 #include "ppapi/c/private/ppb_file_ref_private.h" |
55 #include "ppapi/c/private/ppb_flash_clipboard.h" | 55 #include "ppapi/c/private/ppb_flash_clipboard.h" |
56 #include "ppapi/c/private/ppb_flash_file.h" | 56 #include "ppapi/c/private/ppb_flash_file.h" |
57 #include "ppapi/c/private/ppb_flash_fullscreen.h" | 57 #include "ppapi/c/private/ppb_flash_fullscreen.h" |
58 #include "ppapi/c/private/ppb_flash.h" | 58 #include "ppapi/c/private/ppb_flash.h" |
59 #include "ppapi/c/private/ppb_flash_device_id.h" | 59 #include "ppapi/c/private/ppb_flash_device_id.h" |
| 60 #include "ppapi/c/private/ppb_flash_font.h" |
60 #include "ppapi/c/private/ppb_flash_menu.h" | 61 #include "ppapi/c/private/ppb_flash_menu.h" |
61 #include "ppapi/c/private/ppb_flash_message_loop.h" | 62 #include "ppapi/c/private/ppb_flash_message_loop.h" |
62 #include "ppapi/c/private/ppb_flash_print.h" | 63 #include "ppapi/c/private/ppb_flash_print.h" |
63 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 64 #include "ppapi/c/private/ppb_flash_tcp_socket.h" |
64 #include "ppapi/c/private/ppb_net_address_private.h" | 65 #include "ppapi/c/private/ppb_net_address_private.h" |
65 #include "ppapi/c/private/ppb_network_list_private.h" | 66 #include "ppapi/c/private/ppb_network_list_private.h" |
66 #include "ppapi/c/private/ppb_network_monitor_private.h" | 67 #include "ppapi/c/private/ppb_network_monitor_private.h" |
67 #include "ppapi/c/private/ppb_pdf.h" | 68 #include "ppapi/c/private/ppb_pdf.h" |
68 #include "ppapi/c/private/ppb_talk_private.h" | 69 #include "ppapi/c/private/ppb_talk_private.h" |
69 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 70 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface()); | 208 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface()); |
208 AddPPB(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0, API_ID_NONE, | 209 AddPPB(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0, API_ID_NONE, |
209 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface()); | 210 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface()); |
210 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0, API_ID_NONE, | 211 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0, API_ID_NONE, |
211 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface()); | 212 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface()); |
212 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, API_ID_NONE, | 213 AddPPB(PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, API_ID_NONE, |
213 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface()); | 214 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface()); |
214 AddPPB(PPB_OPENGLES2_QUERY_INTERFACE_1_0, API_ID_NONE, | 215 AddPPB(PPB_OPENGLES2_QUERY_INTERFACE_1_0, API_ID_NONE, |
215 PPB_OpenGLES2_Shared::GetQueryInterface()); | 216 PPB_OpenGLES2_Shared::GetQueryInterface()); |
216 #if !defined(OS_NACL) | 217 #if !defined(OS_NACL) |
| 218 AddPPB(PPB_FLASH_FONT_INTERFACE_0_1, API_ID_PPB_FLASH, |
| 219 PPB_Flash_Proxy::GetFlashFontInterface()); |
217 AddPPB(PPB_FLASH_PRINT_INTERFACE_1_0, API_ID_PPB_FLASH, | 220 AddPPB(PPB_FLASH_PRINT_INTERFACE_1_0, API_ID_PPB_FLASH, |
218 PPB_Flash_Proxy::GetFlashPrintInterface()); | 221 PPB_Flash_Proxy::GetFlashPrintInterface()); |
219 #endif | 222 #endif |
220 AddPPB(PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, API_ID_NONE, | 223 AddPPB(PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, API_ID_NONE, |
221 PPB_Var_Shared::GetVarArrayBufferInterface1_0()); | 224 PPB_Var_Shared::GetVarArrayBufferInterface1_0()); |
222 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, | 225 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, |
223 PPB_Var_Shared::GetVarInterface1_1()); | 226 PPB_Var_Shared::GetVarInterface1_1()); |
224 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, | 227 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, |
225 PPB_Var_Shared::GetVarInterface1_0()); | 228 PPB_Var_Shared::GetVarInterface1_0()); |
226 | 229 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 AddPPB(info->name, info->id, info->interface_ptr); | 355 AddPPB(info->name, info->id, info->interface_ptr); |
353 } | 356 } |
354 | 357 |
355 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 358 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
356 AddProxy(info->id, info->create_proxy); | 359 AddProxy(info->id, info->create_proxy); |
357 AddPPP(info->name, info->id, info->interface_ptr); | 360 AddPPP(info->name, info->id, info->interface_ptr); |
358 } | 361 } |
359 | 362 |
360 } // namespace proxy | 363 } // namespace proxy |
361 } // namespace ppapi | 364 } // namespace ppapi |
OLD | NEW |