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

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

Issue 10535062: Add an asynchronous version of the Flash DeviceID API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/api_id.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/resource_creation_proxy.h" 5 #include "ppapi/proxy/resource_creation_proxy.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/pp_size.h" 8 #include "ppapi/c/pp_size.h"
9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
10 #include "ppapi/proxy/plugin_dispatcher.h" 10 #include "ppapi/proxy/plugin_dispatcher.h"
11 #include "ppapi/proxy/plugin_resource_tracker.h" 11 #include "ppapi/proxy/plugin_resource_tracker.h"
12 #include "ppapi/proxy/ppapi_messages.h" 12 #include "ppapi/proxy/ppapi_messages.h"
13 #include "ppapi/proxy/ppb_audio_input_proxy.h" 13 #include "ppapi/proxy/ppb_audio_input_proxy.h"
14 #include "ppapi/proxy/ppb_audio_proxy.h" 14 #include "ppapi/proxy/ppb_audio_proxy.h"
15 #include "ppapi/proxy/ppb_buffer_proxy.h" 15 #include "ppapi/proxy/ppb_buffer_proxy.h"
16 #include "ppapi/proxy/ppb_broker_proxy.h" 16 #include "ppapi/proxy/ppb_broker_proxy.h"
17 #include "ppapi/proxy/ppb_file_chooser_proxy.h" 17 #include "ppapi/proxy/ppb_file_chooser_proxy.h"
18 #include "ppapi/proxy/ppb_file_io_proxy.h" 18 #include "ppapi/proxy/ppb_file_io_proxy.h"
19 #include "ppapi/proxy/ppb_file_ref_proxy.h" 19 #include "ppapi/proxy/ppb_file_ref_proxy.h"
20 #include "ppapi/proxy/ppb_file_system_proxy.h" 20 #include "ppapi/proxy/ppb_file_system_proxy.h"
21 #include "ppapi/proxy/ppb_flash_device_id_proxy.h"
21 #include "ppapi/proxy/ppb_flash_menu_proxy.h" 22 #include "ppapi/proxy/ppb_flash_menu_proxy.h"
22 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" 23 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h"
23 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" 24 #include "ppapi/proxy/ppb_graphics_2d_proxy.h"
24 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" 25 #include "ppapi/proxy/ppb_graphics_3d_proxy.h"
25 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h" 26 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h"
26 #include "ppapi/proxy/ppb_image_data_proxy.h" 27 #include "ppapi/proxy/ppb_image_data_proxy.h"
27 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" 28 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h"
28 #include "ppapi/proxy/ppb_talk_private_proxy.h" 29 #include "ppapi/proxy/ppb_talk_private_proxy.h"
29 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" 30 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h"
30 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" 31 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 222 }
222 223
223 PP_Resource ResourceCreationProxy::CreateFileChooser( 224 PP_Resource ResourceCreationProxy::CreateFileChooser(
224 PP_Instance instance, 225 PP_Instance instance,
225 PP_FileChooserMode_Dev mode, 226 PP_FileChooserMode_Dev mode,
226 const char* accept_types) { 227 const char* accept_types) {
227 return PPB_FileChooser_Proxy::CreateProxyResource(instance, mode, 228 return PPB_FileChooser_Proxy::CreateProxyResource(instance, mode,
228 accept_types); 229 accept_types);
229 } 230 }
230 231
232 PP_Resource ResourceCreationProxy::CreateFlashDeviceID(PP_Instance instance) {
233 return PPB_Flash_DeviceID_Proxy::CreateProxyResource(instance);
234 }
235
231 PP_Resource ResourceCreationProxy::CreateFlashMenu( 236 PP_Resource ResourceCreationProxy::CreateFlashMenu(
232 PP_Instance instance, 237 PP_Instance instance,
233 const PP_Flash_Menu* menu_data) { 238 const PP_Flash_Menu* menu_data) {
234 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); 239 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data);
235 } 240 }
236 241
237 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( 242 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop(
238 PP_Instance instance) { 243 PP_Instance instance) {
239 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); 244 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance);
240 } 245 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 bool ResourceCreationProxy::Send(IPC::Message* msg) { 340 bool ResourceCreationProxy::Send(IPC::Message* msg) {
336 return dispatcher()->Send(msg); 341 return dispatcher()->Send(msg);
337 } 342 }
338 343
339 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 344 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
340 return false; 345 return false;
341 } 346 }
342 347
343 } // namespace proxy 348 } // namespace proxy
344 } // namespace ppapi 349 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/api_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698