Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: ppapi/proxy/interface_list.cc

Issue 8559003: Pepper: Generate ppb_flash_clipboard.h from .idl file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix whitespace Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/private/ppb_flash_clipboard.h ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 const void* InterfaceList::GetInterfaceForPPP(const std::string& name) const { 232 const void* InterfaceList::GetInterfaceForPPP(const std::string& name) const {
233 NameToInterfaceInfoMap::const_iterator found = 233 NameToInterfaceInfoMap::const_iterator found =
234 name_to_plugin_info_.find(name); 234 name_to_plugin_info_.find(name);
235 if (found == name_to_plugin_info_.end()) 235 if (found == name_to_plugin_info_.end())
236 return NULL; 236 return NULL;
237 return found->second.iface; 237 return found->second.iface;
238 } 238 }
239 239
240 void InterfaceList::AddFlashInterfaces() { 240 void InterfaceList::AddFlashInterfaces() {
241 AddProxy(API_ID_PPB_FLASH, &ProxyFactory<PPB_Flash_Proxy>);
242 AddPPB(PPB_FLASH_INTERFACE, API_ID_PPB_FLASH,
243 PPB_Flash_Proxy::GetInterface());
244
241 AddProxy(API_ID_PPB_FLASH_CLIPBOARD, 245 AddProxy(API_ID_PPB_FLASH_CLIPBOARD,
242 &ProxyFactory<PPB_Flash_Clipboard_Proxy>); 246 &ProxyFactory<PPB_Flash_Clipboard_Proxy>);
243 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE, API_ID_PPB_FLASH_CLIPBOARD, 247 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE, API_ID_PPB_FLASH_CLIPBOARD,
244 thunk::GetPPB_Flash_Clipboard_Thunk()); 248 thunk::GetPPB_Flash_Clipboard_Thunk());
249 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY, API_ID_PPB_FLASH_CLIPBOARD,
250 thunk::GetPPB_Flash_Clipboard_Thunk());
251
252 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF,
253 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>);
254 AddPPB(PPB_FLASH_FILE_FILEREF_INTERFACE, API_ID_PPB_FLASH_FILE_FILEREF,
255 PPB_Flash_File_FileRef_Proxy::GetInterface());
245 256
246 AddProxy(API_ID_PPB_FLASH_FILE_MODULELOCAL, 257 AddProxy(API_ID_PPB_FLASH_FILE_MODULELOCAL,
247 &ProxyFactory<PPB_Flash_File_ModuleLocal_Proxy>); 258 &ProxyFactory<PPB_Flash_File_ModuleLocal_Proxy>);
248 AddPPB(PPB_FLASH_FILE_MODULELOCAL_INTERFACE, 259 AddPPB(PPB_FLASH_FILE_MODULELOCAL_INTERFACE,
249 API_ID_PPB_FLASH_FILE_MODULELOCAL, 260 API_ID_PPB_FLASH_FILE_MODULELOCAL,
250 PPB_Flash_File_ModuleLocal_Proxy::GetInterface()); 261 PPB_Flash_File_ModuleLocal_Proxy::GetInterface());
251 262
252 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF,
253 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>);
254 AddPPB(PPB_FLASH_FILE_FILEREF_INTERFACE, API_ID_PPB_FLASH_FILE_FILEREF,
255 PPB_Flash_File_FileRef_Proxy::GetInterface());
256
257 AddProxy(API_ID_PPB_FLASH_MENU, &ProxyFactory<PPB_Flash_Menu_Proxy>); 263 AddProxy(API_ID_PPB_FLASH_MENU, &ProxyFactory<PPB_Flash_Menu_Proxy>);
258 AddPPB(PPB_FLASH_MENU_INTERFACE, API_ID_PPB_FLASH_MENU, 264 AddPPB(PPB_FLASH_MENU_INTERFACE, API_ID_PPB_FLASH_MENU,
259 thunk::GetPPB_Flash_Menu_Thunk()); 265 thunk::GetPPB_Flash_Menu_Thunk());
260 266
261 AddProxy(API_ID_PPB_FLASH, &ProxyFactory<PPB_Flash_Proxy>);
262 AddPPB(PPB_FLASH_INTERFACE, API_ID_PPB_FLASH,
263 PPB_Flash_Proxy::GetInterface());
264
265 AddProxy(API_ID_PPB_FLASH_TCPSOCKET, 267 AddProxy(API_ID_PPB_FLASH_TCPSOCKET,
266 &ProxyFactory<PPB_Flash_TCPSocket_Proxy>); 268 &ProxyFactory<PPB_Flash_TCPSocket_Proxy>);
267 AddPPB(PPB_FLASH_TCPSOCKET_INTERFACE, API_ID_PPB_FLASH_TCPSOCKET, 269 AddPPB(PPB_FLASH_TCPSOCKET_INTERFACE, API_ID_PPB_FLASH_TCPSOCKET,
268 thunk::GetPPB_Flash_TCPSocket_Thunk()); 270 thunk::GetPPB_Flash_TCPSocket_Thunk());
269 271
270 AddProxy(API_ID_PPB_FLASH_UDPSOCKET, 272 AddProxy(API_ID_PPB_FLASH_UDPSOCKET,
271 &ProxyFactory<PPB_Flash_UDPSocket_Proxy>); 273 &ProxyFactory<PPB_Flash_UDPSocket_Proxy>);
272 AddPPB(PPB_FLASH_UDPSOCKET_INTERFACE, API_ID_PPB_FLASH_UDPSOCKET, 274 AddPPB(PPB_FLASH_UDPSOCKET_INTERFACE, API_ID_PPB_FLASH_UDPSOCKET,
273 thunk::GetPPB_Flash_UDPSocket_Thunk()); 275 thunk::GetPPB_Flash_UDPSocket_Thunk());
274 276
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 AddPPB(info->name, info->id, info->interface_ptr); 317 AddPPB(info->name, info->id, info->interface_ptr);
316 } 318 }
317 319
318 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 320 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
319 AddProxy(info->id, info->create_proxy); 321 AddProxy(info->id, info->create_proxy);
320 AddPPP(info->name, info->id, info->interface_ptr); 322 AddPPP(info->name, info->id, info->interface_ptr);
321 } 323 }
322 324
323 } // namespace proxy 325 } // namespace proxy
324 } // namespace ppapi 326 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_flash_clipboard.h ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698