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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 return NULL; | 263 return NULL; |
264 return found->second.iface; | 264 return found->second.iface; |
265 } | 265 } |
266 | 266 |
267 void InterfaceList::AddFlashInterfaces() { | 267 void InterfaceList::AddFlashInterfaces() { |
268 AddProxy(API_ID_PPB_FLASH, &ProxyFactory<PPB_Flash_Proxy>); | 268 AddProxy(API_ID_PPB_FLASH, &ProxyFactory<PPB_Flash_Proxy>); |
269 AddPPB(PPB_FLASH_INTERFACE_11_0, API_ID_PPB_FLASH, | 269 AddPPB(PPB_FLASH_INTERFACE_11_0, API_ID_PPB_FLASH, |
270 PPB_Flash_Proxy::GetInterface11()); | 270 PPB_Flash_Proxy::GetInterface11()); |
271 AddPPB(PPB_FLASH_INTERFACE_12_0, API_ID_PPB_FLASH, | 271 AddPPB(PPB_FLASH_INTERFACE_12_0, API_ID_PPB_FLASH, |
272 PPB_Flash_Proxy::GetInterface12_0()); | 272 PPB_Flash_Proxy::GetInterface12_0()); |
| 273 AddPPB(PPB_FLASH_INTERFACE_12_1, API_ID_PPB_FLASH, |
| 274 PPB_Flash_Proxy::GetInterface12_1()); |
273 | 275 |
274 AddProxy(API_ID_PPB_FLASH_CLIPBOARD, | 276 AddProxy(API_ID_PPB_FLASH_CLIPBOARD, |
275 &ProxyFactory<PPB_Flash_Clipboard_Proxy>); | 277 &ProxyFactory<PPB_Flash_Clipboard_Proxy>); |
276 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_0, API_ID_PPB_FLASH_CLIPBOARD, | 278 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_0, API_ID_PPB_FLASH_CLIPBOARD, |
277 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); | 279 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); |
278 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY, API_ID_PPB_FLASH_CLIPBOARD, | 280 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY, API_ID_PPB_FLASH_CLIPBOARD, |
279 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); | 281 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); |
280 | 282 |
281 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF, | 283 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF, |
282 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>); | 284 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 AddPPB(info->name, info->id, info->interface_ptr); | 347 AddPPB(info->name, info->id, info->interface_ptr); |
346 } | 348 } |
347 | 349 |
348 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 350 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
349 AddProxy(info->id, info->create_proxy); | 351 AddProxy(info->id, info->create_proxy); |
350 AddPPP(info->name, info->id, info->interface_ptr); | 352 AddPPP(info->name, info->id, info->interface_ptr); |
351 } | 353 } |
352 | 354 |
353 } // namespace proxy | 355 } // namespace proxy |
354 } // namespace ppapi | 356 } // namespace ppapi |
OLD | NEW |