| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_buffer_dev.h" | 8 #include "ppapi/c/dev/ppb_buffer_dev.h" |
| 9 #include "ppapi/c/dev/ppb_char_set_dev.h" | 9 #include "ppapi/c/dev/ppb_char_set_dev.h" |
| 10 #include "ppapi/c/dev/ppb_console_dev.h" | 10 #include "ppapi/c/dev/ppb_console_dev.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 name_to_plugin_info_.find(name); | 233 name_to_plugin_info_.find(name); |
| 234 if (found == name_to_plugin_info_.end()) | 234 if (found == name_to_plugin_info_.end()) |
| 235 return NULL; | 235 return NULL; |
| 236 return found->second.iface; | 236 return found->second.iface; |
| 237 } | 237 } |
| 238 | 238 |
| 239 void InterfaceList::AddFlashInterfaces() { | 239 void InterfaceList::AddFlashInterfaces() { |
| 240 AddProxy(API_ID_PPB_FLASH_CLIPBOARD, | 240 AddProxy(API_ID_PPB_FLASH_CLIPBOARD, |
| 241 &ProxyFactory<PPB_Flash_Clipboard_Proxy>); | 241 &ProxyFactory<PPB_Flash_Clipboard_Proxy>); |
| 242 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE, API_ID_PPB_FLASH_CLIPBOARD, | 242 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE, API_ID_PPB_FLASH_CLIPBOARD, |
| 243 PPB_Flash_Clipboard_Proxy::GetInterface()); | 243 thunk::GetPPB_Flash_Clipboard_Thunk()); |
| 244 | 244 |
| 245 AddProxy(API_ID_PPB_FLASH_FILE_MODULELOCAL, | 245 AddProxy(API_ID_PPB_FLASH_FILE_MODULELOCAL, |
| 246 &ProxyFactory<PPB_Flash_File_ModuleLocal_Proxy>); | 246 &ProxyFactory<PPB_Flash_File_ModuleLocal_Proxy>); |
| 247 AddPPB(PPB_FLASH_FILE_MODULELOCAL_INTERFACE, | 247 AddPPB(PPB_FLASH_FILE_MODULELOCAL_INTERFACE, |
| 248 API_ID_PPB_FLASH_FILE_MODULELOCAL, | 248 API_ID_PPB_FLASH_FILE_MODULELOCAL, |
| 249 PPB_Flash_File_ModuleLocal_Proxy::GetInterface()); | 249 PPB_Flash_File_ModuleLocal_Proxy::GetInterface()); |
| 250 | 250 |
| 251 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF, | 251 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF, |
| 252 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>); | 252 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>); |
| 253 AddPPB(PPB_FLASH_FILE_FILEREF_INTERFACE, API_ID_PPB_FLASH_FILE_FILEREF, | 253 AddPPB(PPB_FLASH_FILE_FILEREF_INTERFACE, API_ID_PPB_FLASH_FILE_FILEREF, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 AddPPB(info->name, info->id, info->interface_ptr); | 314 AddPPB(info->name, info->id, info->interface_ptr); |
| 315 } | 315 } |
| 316 | 316 |
| 317 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 317 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
| 318 AddProxy(info->id, info->create_proxy); | 318 AddProxy(info->id, info->create_proxy); |
| 319 AddPPP(info->name, info->id, info->interface_ptr); | 319 AddPPP(info->name, info->id, info->interface_ptr); |
| 320 } | 320 } |
| 321 | 321 |
| 322 } // namespace proxy | 322 } // namespace proxy |
| 323 } // namespace ppapi | 323 } // namespace ppapi |
| OLD | NEW |