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

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

Issue 10163012: Move the FlashClipboard API into the Flash one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments & fixes. Created 8 years, 8 months 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/ppapi_shared.gypi ('k') | ppapi/proxy/ppapi_messages.h » ('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) 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #include "ppapi/proxy/interface_proxy.h" 72 #include "ppapi/proxy/interface_proxy.h"
73 #include "ppapi/proxy/ppb_audio_input_proxy.h" 73 #include "ppapi/proxy/ppb_audio_input_proxy.h"
74 #include "ppapi/proxy/ppb_audio_proxy.h" 74 #include "ppapi/proxy/ppb_audio_proxy.h"
75 #include "ppapi/proxy/ppb_broker_proxy.h" 75 #include "ppapi/proxy/ppb_broker_proxy.h"
76 #include "ppapi/proxy/ppb_buffer_proxy.h" 76 #include "ppapi/proxy/ppb_buffer_proxy.h"
77 #include "ppapi/proxy/ppb_core_proxy.h" 77 #include "ppapi/proxy/ppb_core_proxy.h"
78 #include "ppapi/proxy/ppb_file_chooser_proxy.h" 78 #include "ppapi/proxy/ppb_file_chooser_proxy.h"
79 #include "ppapi/proxy/ppb_file_io_proxy.h" 79 #include "ppapi/proxy/ppb_file_io_proxy.h"
80 #include "ppapi/proxy/ppb_file_ref_proxy.h" 80 #include "ppapi/proxy/ppb_file_ref_proxy.h"
81 #include "ppapi/proxy/ppb_file_system_proxy.h" 81 #include "ppapi/proxy/ppb_file_system_proxy.h"
82 #include "ppapi/proxy/ppb_flash_clipboard_proxy.h"
83 #include "ppapi/proxy/ppb_flash_file_proxy.h" 82 #include "ppapi/proxy/ppb_flash_file_proxy.h"
84 #include "ppapi/proxy/ppb_flash_menu_proxy.h" 83 #include "ppapi/proxy/ppb_flash_menu_proxy.h"
85 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" 84 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h"
86 #include "ppapi/proxy/ppb_flash_proxy.h" 85 #include "ppapi/proxy/ppb_flash_proxy.h"
87 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" 86 #include "ppapi/proxy/ppb_graphics_2d_proxy.h"
88 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" 87 #include "ppapi/proxy/ppb_graphics_3d_proxy.h"
89 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h" 88 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h"
90 #include "ppapi/proxy/ppb_image_data_proxy.h" 89 #include "ppapi/proxy/ppb_image_data_proxy.h"
91 #include "ppapi/proxy/ppb_instance_proxy.h" 90 #include "ppapi/proxy/ppb_instance_proxy.h"
92 #include "ppapi/proxy/ppb_message_loop_proxy.h" 91 #include "ppapi/proxy/ppb_message_loop_proxy.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 const void* InterfaceList::GetInterfaceForPPP(const std::string& name) const { 297 const void* InterfaceList::GetInterfaceForPPP(const std::string& name) const {
299 NameToInterfaceInfoMap::const_iterator found = 298 NameToInterfaceInfoMap::const_iterator found =
300 name_to_plugin_info_.find(name); 299 name_to_plugin_info_.find(name);
301 if (found == name_to_plugin_info_.end()) 300 if (found == name_to_plugin_info_.end())
302 return NULL; 301 return NULL;
303 return found->second.iface; 302 return found->second.iface;
304 } 303 }
305 304
306 #if !defined(OS_NACL) 305 #if !defined(OS_NACL)
307 void InterfaceList::AddFlashInterfaces() { 306 void InterfaceList::AddFlashInterfaces() {
308 AddProxy(API_ID_PPB_FLASH_CLIPBOARD,
309 &ProxyFactory<PPB_Flash_Clipboard_Proxy>);
310 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_4_0, API_ID_PPB_FLASH_CLIPBOARD,
311 thunk::GetPPB_Flash_Clipboard_4_0_Thunk());
312 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_0, API_ID_PPB_FLASH_CLIPBOARD,
313 thunk::GetPPB_Flash_Clipboard_3_0_Thunk());
314 AddPPB(PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY, API_ID_PPB_FLASH_CLIPBOARD,
315 thunk::GetPPB_Flash_Clipboard_3_0_Thunk());
316
317 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF, 307 AddProxy(API_ID_PPB_FLASH_FILE_FILEREF,
318 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>); 308 &ProxyFactory<PPB_Flash_File_FileRef_Proxy>);
319 AddPPB(PPB_FLASH_FILE_FILEREF_INTERFACE, API_ID_PPB_FLASH_FILE_FILEREF, 309 AddPPB(PPB_FLASH_FILE_FILEREF_INTERFACE, API_ID_PPB_FLASH_FILE_FILEREF,
320 PPB_Flash_File_FileRef_Proxy::GetInterface()); 310 PPB_Flash_File_FileRef_Proxy::GetInterface());
321 311
322 AddProxy(API_ID_PPB_FLASH_FILE_MODULELOCAL, 312 AddProxy(API_ID_PPB_FLASH_FILE_MODULELOCAL,
323 &ProxyFactory<PPB_Flash_File_ModuleLocal_Proxy>); 313 &ProxyFactory<PPB_Flash_File_ModuleLocal_Proxy>);
324 AddPPB(PPB_FLASH_FILE_MODULELOCAL_INTERFACE, 314 AddPPB(PPB_FLASH_FILE_MODULELOCAL_INTERFACE,
325 API_ID_PPB_FLASH_FILE_MODULELOCAL, 315 API_ID_PPB_FLASH_FILE_MODULELOCAL,
326 PPB_Flash_File_ModuleLocal_Proxy::GetInterface()); 316 PPB_Flash_File_ModuleLocal_Proxy::GetInterface());
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 AddPPB(info->name, info->id, info->interface_ptr); 365 AddPPB(info->name, info->id, info->interface_ptr);
376 } 366 }
377 367
378 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 368 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
379 AddProxy(info->id, info->create_proxy); 369 AddProxy(info->id, info->create_proxy);
380 AddPPP(info->name, info->id, info->interface_ptr); 370 AddPPP(info->name, info->id, info->interface_ptr);
381 } 371 }
382 372
383 } // namespace proxy 373 } // namespace proxy
384 } // namespace ppapi 374 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/ppapi_shared.gypi ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698