| OLD | NEW |
| 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/audio_input_resource.h" | 10 #include "ppapi/proxy/audio_input_resource.h" |
| 11 #include "ppapi/proxy/browser_font_resource_trusted.h" | 11 #include "ppapi/proxy/browser_font_resource_trusted.h" |
| 12 #include "ppapi/proxy/connection.h" | 12 #include "ppapi/proxy/connection.h" |
| 13 #include "ppapi/proxy/ext_crx_file_system_private_resource.h" | 13 #include "ppapi/proxy/ext_crx_file_system_private_resource.h" |
| 14 #include "ppapi/proxy/file_chooser_resource.h" | 14 #include "ppapi/proxy/file_chooser_resource.h" |
| 15 #include "ppapi/proxy/file_io_resource.h" | 15 #include "ppapi/proxy/file_io_resource.h" |
| 16 #include "ppapi/proxy/file_system_resource.h" | 16 #include "ppapi/proxy/file_system_resource.h" |
| 17 #include "ppapi/proxy/flash_device_id_resource.h" | 17 #include "ppapi/proxy/flash_drm_resource.h" |
| 18 #include "ppapi/proxy/flash_font_file_resource.h" | 18 #include "ppapi/proxy/flash_font_file_resource.h" |
| 19 #include "ppapi/proxy/flash_menu_resource.h" | 19 #include "ppapi/proxy/flash_menu_resource.h" |
| 20 #include "ppapi/proxy/graphics_2d_resource.h" | 20 #include "ppapi/proxy/graphics_2d_resource.h" |
| 21 #include "ppapi/proxy/host_resolver_private_resource.h" | 21 #include "ppapi/proxy/host_resolver_private_resource.h" |
| 22 #include "ppapi/proxy/plugin_dispatcher.h" | 22 #include "ppapi/proxy/plugin_dispatcher.h" |
| 23 #include "ppapi/proxy/plugin_globals.h" | 23 #include "ppapi/proxy/plugin_globals.h" |
| 24 #include "ppapi/proxy/plugin_resource_tracker.h" | 24 #include "ppapi/proxy/plugin_resource_tracker.h" |
| 25 #include "ppapi/proxy/ppapi_messages.h" | 25 #include "ppapi/proxy/ppapi_messages.h" |
| 26 #include "ppapi/proxy/ppb_audio_proxy.h" | 26 #include "ppapi/proxy/ppb_audio_proxy.h" |
| 27 #include "ppapi/proxy/ppb_broker_proxy.h" | 27 #include "ppapi/proxy/ppb_broker_proxy.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 return 0; | 339 return 0; |
| 340 return (new BrowserFontResource_Trusted(GetConnection(), instance, | 340 return (new BrowserFontResource_Trusted(GetConnection(), instance, |
| 341 *description, dispatcher->preferences()))->GetReference(); | 341 *description, dispatcher->preferences()))->GetReference(); |
| 342 } | 342 } |
| 343 | 343 |
| 344 PP_Resource ResourceCreationProxy::CreateBuffer(PP_Instance instance, | 344 PP_Resource ResourceCreationProxy::CreateBuffer(PP_Instance instance, |
| 345 uint32_t size) { | 345 uint32_t size) { |
| 346 return PPB_Buffer_Proxy::CreateProxyResource(instance, size); | 346 return PPB_Buffer_Proxy::CreateProxyResource(instance, size); |
| 347 } | 347 } |
| 348 | 348 |
| 349 PP_Resource ResourceCreationProxy::CreateFlashDeviceID(PP_Instance instance) { | 349 PP_Resource ResourceCreationProxy::CreateFlashDRM(PP_Instance instance) { |
| 350 return (new FlashDeviceIDResource(GetConnection(), instance))->GetReference(); | 350 return (new FlashDRMResource(GetConnection(), instance))->GetReference(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 PP_Resource ResourceCreationProxy::CreateFlashFontFile( | 353 PP_Resource ResourceCreationProxy::CreateFlashFontFile( |
| 354 PP_Instance instance, | 354 PP_Instance instance, |
| 355 const PP_BrowserFont_Trusted_Description* description, | 355 const PP_BrowserFont_Trusted_Description* description, |
| 356 PP_PrivateFontCharset charset) { | 356 PP_PrivateFontCharset charset) { |
| 357 return (new FlashFontFileResource( | 357 return (new FlashFontFileResource( |
| 358 GetConnection(), instance, description, charset))->GetReference(); | 358 GetConnection(), instance, description, charset))->GetReference(); |
| 359 } | 359 } |
| 360 | 360 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 419 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 420 return false; | 420 return false; |
| 421 } | 421 } |
| 422 | 422 |
| 423 Connection ResourceCreationProxy::GetConnection() { | 423 Connection ResourceCreationProxy::GetConnection() { |
| 424 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 424 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 425 } | 425 } |
| 426 | 426 |
| 427 } // namespace proxy | 427 } // namespace proxy |
| 428 } // namespace ppapi | 428 } // namespace ppapi |
| OLD | NEW |