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

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

Issue 10909138: Convert the async device ID getter to a chrome resource host (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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
« no previous file with comments | « ppapi/proxy/ppb_flash_device_id_proxy.cc ('k') | ppapi/shared_impl/ppapi_permissions.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/connection.h" 10 #include "ppapi/proxy/connection.h"
11 #include "ppapi/proxy/file_chooser_resource.h" 11 #include "ppapi/proxy/file_chooser_resource.h"
12 #include "ppapi/proxy/flash_device_id_resource.h"
12 #include "ppapi/proxy/plugin_dispatcher.h" 13 #include "ppapi/proxy/plugin_dispatcher.h"
13 #include "ppapi/proxy/plugin_globals.h" 14 #include "ppapi/proxy/plugin_globals.h"
14 #include "ppapi/proxy/plugin_proxy_delegate.h" 15 #include "ppapi/proxy/plugin_proxy_delegate.h"
15 #include "ppapi/proxy/plugin_resource_tracker.h" 16 #include "ppapi/proxy/plugin_resource_tracker.h"
16 #include "ppapi/proxy/ppapi_messages.h" 17 #include "ppapi/proxy/ppapi_messages.h"
17 #include "ppapi/proxy/ppb_audio_input_proxy.h" 18 #include "ppapi/proxy/ppb_audio_input_proxy.h"
18 #include "ppapi/proxy/ppb_audio_proxy.h" 19 #include "ppapi/proxy/ppb_audio_proxy.h"
19 #include "ppapi/proxy/ppb_buffer_proxy.h" 20 #include "ppapi/proxy/ppb_buffer_proxy.h"
20 #include "ppapi/proxy/ppb_broker_proxy.h" 21 #include "ppapi/proxy/ppb_broker_proxy.h"
21 #include "ppapi/proxy/ppb_file_io_proxy.h" 22 #include "ppapi/proxy/ppb_file_io_proxy.h"
22 #include "ppapi/proxy/ppb_file_ref_proxy.h" 23 #include "ppapi/proxy/ppb_file_ref_proxy.h"
23 #include "ppapi/proxy/ppb_file_system_proxy.h" 24 #include "ppapi/proxy/ppb_file_system_proxy.h"
24 #include "ppapi/proxy/ppb_flash_device_id_proxy.h"
25 #include "ppapi/proxy/ppb_flash_menu_proxy.h" 25 #include "ppapi/proxy/ppb_flash_menu_proxy.h"
26 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" 26 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h"
27 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" 27 #include "ppapi/proxy/ppb_graphics_2d_proxy.h"
28 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" 28 #include "ppapi/proxy/ppb_graphics_3d_proxy.h"
29 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h" 29 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h"
30 #include "ppapi/proxy/ppb_image_data_proxy.h" 30 #include "ppapi/proxy/ppb_image_data_proxy.h"
31 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" 31 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h"
32 #include "ppapi/proxy/ppb_talk_private_proxy.h" 32 #include "ppapi/proxy/ppb_talk_private_proxy.h"
33 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" 33 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h"
34 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" 34 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 PP_Resource ResourceCreationProxy::CreateFileChooser( 297 PP_Resource ResourceCreationProxy::CreateFileChooser(
298 PP_Instance instance, 298 PP_Instance instance,
299 PP_FileChooserMode_Dev mode, 299 PP_FileChooserMode_Dev mode,
300 const char* accept_types) { 300 const char* accept_types) {
301 return (new FileChooserResource(GetConnection(), instance, mode, 301 return (new FileChooserResource(GetConnection(), instance, mode,
302 accept_types))->GetReference(); 302 accept_types))->GetReference();
303 } 303 }
304 304
305 PP_Resource ResourceCreationProxy::CreateFlashDeviceID(PP_Instance instance) { 305 PP_Resource ResourceCreationProxy::CreateFlashDeviceID(PP_Instance instance) {
306 return PPB_Flash_DeviceID_Proxy::CreateProxyResource(instance); 306 return (new FlashDeviceIDResource(GetConnection(), instance))->GetReference();
307 } 307 }
308 308
309 PP_Resource ResourceCreationProxy::CreateFlashMenu( 309 PP_Resource ResourceCreationProxy::CreateFlashMenu(
310 PP_Instance instance, 310 PP_Instance instance,
311 const PP_Flash_Menu* menu_data) { 311 const PP_Flash_Menu* menu_data) {
312 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); 312 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data);
313 } 313 }
314 314
315 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( 315 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop(
316 PP_Instance instance) { 316 PP_Instance instance) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 } 374 }
375 375
376 Connection ResourceCreationProxy::GetConnection() { 376 Connection ResourceCreationProxy::GetConnection() {
377 return Connection( 377 return Connection(
378 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(), 378 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(),
379 dispatcher()); 379 dispatcher());
380 } 380 }
381 381
382 } // namespace proxy 382 } // namespace proxy
383 } // namespace ppapi 383 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_flash_device_id_proxy.cc ('k') | ppapi/shared_impl/ppapi_permissions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698