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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 293 |
294 void InterfaceList::AddFlashInterfaces() { | 294 void InterfaceList::AddFlashInterfaces() { |
295 #if !defined(OS_NACL) | 295 #if !defined(OS_NACL) |
296 AddProxy(API_ID_PPB_FLASH, &ProxyFactory<PPB_Flash_Proxy>); | 296 AddProxy(API_ID_PPB_FLASH, &ProxyFactory<PPB_Flash_Proxy>); |
297 AddPPB(PPB_FLASH_INTERFACE_11_0, API_ID_PPB_FLASH, | 297 AddPPB(PPB_FLASH_INTERFACE_11_0, API_ID_PPB_FLASH, |
298 PPB_Flash_Proxy::GetInterface11()); | 298 PPB_Flash_Proxy::GetInterface11()); |
299 AddPPB(PPB_FLASH_INTERFACE_12_0, API_ID_PPB_FLASH, | 299 AddPPB(PPB_FLASH_INTERFACE_12_0, API_ID_PPB_FLASH, |
300 PPB_Flash_Proxy::GetInterface12_0()); | 300 PPB_Flash_Proxy::GetInterface12_0()); |
301 AddPPB(PPB_FLASH_INTERFACE_12_1, API_ID_PPB_FLASH, | 301 AddPPB(PPB_FLASH_INTERFACE_12_1, API_ID_PPB_FLASH, |
302 PPB_Flash_Proxy::GetInterface12_1()); | 302 PPB_Flash_Proxy::GetInterface12_1()); |
| 303 AddPPB(PPB_FLASH_INTERFACE_12_2, API_ID_PPB_FLASH, |
| 304 PPB_Flash_Proxy::GetInterface12_2()); |
303 | 305 |
304 AddProxy(API_ID_PPB_FLASH_CLIPBOARD, | 306 AddProxy(API_ID_PPB_FLASH_CLIPBOARD, |
305 &ProxyFactory<PPB_Flash_Clipboard_Proxy>); | 307 &ProxyFactory<PPB_Flash_Clipboard_Proxy>); |
306 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_4_0, API_ID_PPB_FLASH_CLIPBOARD, | 308 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_4_0, API_ID_PPB_FLASH_CLIPBOARD, |
307 thunk::GetPPB_Flash_Clipboard_4_0_Thunk()); | 309 thunk::GetPPB_Flash_Clipboard_4_0_Thunk()); |
308 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_0, API_ID_PPB_FLASH_CLIPBOARD, | 310 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_0, API_ID_PPB_FLASH_CLIPBOARD, |
309 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); | 311 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); |
310 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY, API_ID_PPB_FLASH_CLIPBOARD, | 312 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY, API_ID_PPB_FLASH_CLIPBOARD, |
311 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); | 313 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); |
312 | 314 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 AddPPB(info->name, info->id, info->interface_ptr); | 373 AddPPB(info->name, info->id, info->interface_ptr); |
372 } | 374 } |
373 | 375 |
374 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 376 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
375 AddProxy(info->id, info->create_proxy); | 377 AddProxy(info->id, info->create_proxy); |
376 AddPPP(info->name, info->id, info->interface_ptr); | 378 AddPPP(info->name, info->id, info->interface_ptr); |
377 } | 379 } |
378 | 380 |
379 } // namespace proxy | 381 } // namespace proxy |
380 } // namespace ppapi | 382 } // namespace ppapi |
OLD | NEW |