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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 255 |
256 void InterfaceList::AddFlashInterfaces() { | 256 void InterfaceList::AddFlashInterfaces() { |
257 AddProxy(API_ID_PPB_FLASH, &ProxyFactory<PPB_Flash_Proxy>); | 257 AddProxy(API_ID_PPB_FLASH, &ProxyFactory<PPB_Flash_Proxy>); |
258 AddPPB(PPB_FLASH_INTERFACE_11_0, API_ID_PPB_FLASH, | 258 AddPPB(PPB_FLASH_INTERFACE_11_0, API_ID_PPB_FLASH, |
259 PPB_Flash_Proxy::GetInterface11()); | 259 PPB_Flash_Proxy::GetInterface11()); |
260 AddPPB(PPB_FLASH_INTERFACE_12_0, API_ID_PPB_FLASH, | 260 AddPPB(PPB_FLASH_INTERFACE_12_0, API_ID_PPB_FLASH, |
261 PPB_Flash_Proxy::GetInterface12_0()); | 261 PPB_Flash_Proxy::GetInterface12_0()); |
262 | 262 |
263 AddProxy(API_ID_PPB_FLASH_CLIPBOARD, | 263 AddProxy(API_ID_PPB_FLASH_CLIPBOARD, |
264 &ProxyFactory<PPB_Flash_Clipboard_Proxy>); | 264 &ProxyFactory<PPB_Flash_Clipboard_Proxy>); |
| 265 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_4_0, API_ID_PPB_FLASH_CLIPBOARD, |
| 266 thunk::GetPPB_Flash_Clipboard_4_0_Thunk()); |
265 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_0, API_ID_PPB_FLASH_CLIPBOARD, | 267 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_0, API_ID_PPB_FLASH_CLIPBOARD, |
266 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); | 268 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); |
267 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY, API_ID_PPB_FLASH_CLIPBOARD, | 269 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY, API_ID_PPB_FLASH_CLIPBOARD, |
268 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); | 270 thunk::GetPPB_Flash_Clipboard_3_0_Thunk()); |
269 | 271 |
270 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF, | 272 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF, |
271 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>); | 273 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>); |
272 AddPPB(PPB_FLASH_FILE_FILEREF_INTERFACE, API_ID_PPB_FLASH_FILE_FILEREF, | 274 AddPPB(PPB_FLASH_FILE_FILEREF_INTERFACE, API_ID_PPB_FLASH_FILE_FILEREF, |
273 PPB_Flash_File_FileRef_Proxy::GetInterface()); | 275 PPB_Flash_File_FileRef_Proxy::GetInterface()); |
274 | 276 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 AddPPB(info->name, info->id, info->interface_ptr); | 331 AddPPB(info->name, info->id, info->interface_ptr); |
330 } | 332 } |
331 | 333 |
332 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 334 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
333 AddProxy(info->id, info->create_proxy); | 335 AddProxy(info->id, info->create_proxy); |
334 AddPPP(info->name, info->id, info->interface_ptr); | 336 AddPPP(info->name, info->id, info->interface_ptr); |
335 } | 337 } |
336 | 338 |
337 } // namespace proxy | 339 } // namespace proxy |
338 } // namespace ppapi | 340 } // namespace ppapi |
OLD | NEW |