| 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/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/flash_device_id_resource.h" |
| 13 #include "ppapi/proxy/flash_font_file_resource.h" |
| 13 #include "ppapi/proxy/plugin_dispatcher.h" | 14 #include "ppapi/proxy/plugin_dispatcher.h" |
| 14 #include "ppapi/proxy/plugin_globals.h" | 15 #include "ppapi/proxy/plugin_globals.h" |
| 15 #include "ppapi/proxy/plugin_proxy_delegate.h" | 16 #include "ppapi/proxy/plugin_proxy_delegate.h" |
| 16 #include "ppapi/proxy/plugin_resource_tracker.h" | 17 #include "ppapi/proxy/plugin_resource_tracker.h" |
| 17 #include "ppapi/proxy/ppapi_messages.h" | 18 #include "ppapi/proxy/ppapi_messages.h" |
| 18 #include "ppapi/proxy/ppb_audio_input_proxy.h" | 19 #include "ppapi/proxy/ppb_audio_input_proxy.h" |
| 19 #include "ppapi/proxy/ppb_audio_proxy.h" | 20 #include "ppapi/proxy/ppb_audio_proxy.h" |
| 20 #include "ppapi/proxy/ppb_buffer_proxy.h" | 21 #include "ppapi/proxy/ppb_buffer_proxy.h" |
| 21 #include "ppapi/proxy/ppb_broker_proxy.h" | 22 #include "ppapi/proxy/ppb_broker_proxy.h" |
| 22 #include "ppapi/proxy/ppb_file_io_proxy.h" | 23 #include "ppapi/proxy/ppb_file_io_proxy.h" |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 PP_FileChooserMode_Dev mode, | 313 PP_FileChooserMode_Dev mode, |
| 313 const char* accept_types) { | 314 const char* accept_types) { |
| 314 return (new FileChooserResource(GetConnection(), instance, mode, | 315 return (new FileChooserResource(GetConnection(), instance, mode, |
| 315 accept_types))->GetReference(); | 316 accept_types))->GetReference(); |
| 316 } | 317 } |
| 317 | 318 |
| 318 PP_Resource ResourceCreationProxy::CreateFlashDeviceID(PP_Instance instance) { | 319 PP_Resource ResourceCreationProxy::CreateFlashDeviceID(PP_Instance instance) { |
| 319 return (new FlashDeviceIDResource(GetConnection(), instance))->GetReference(); | 320 return (new FlashDeviceIDResource(GetConnection(), instance))->GetReference(); |
| 320 } | 321 } |
| 321 | 322 |
| 323 PP_Resource ResourceCreationProxy::CreateFlashFontFile( |
| 324 PP_Instance instance, |
| 325 const PP_FontDescription_Dev* description, |
| 326 PP_PrivateFontCharset charset) { |
| 327 return (new FlashFontFileResource( |
| 328 GetConnection(), instance, description, charset))->GetReference(); |
| 329 } |
| 330 |
| 322 PP_Resource ResourceCreationProxy::CreateFlashMenu( | 331 PP_Resource ResourceCreationProxy::CreateFlashMenu( |
| 323 PP_Instance instance, | 332 PP_Instance instance, |
| 324 const PP_Flash_Menu* menu_data) { | 333 const PP_Flash_Menu* menu_data) { |
| 325 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); | 334 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); |
| 326 } | 335 } |
| 327 | 336 |
| 328 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( | 337 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( |
| 329 PP_Instance instance) { | 338 PP_Instance instance) { |
| 330 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); | 339 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); |
| 331 } | 340 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 } | 376 } |
| 368 | 377 |
| 369 Connection ResourceCreationProxy::GetConnection() { | 378 Connection ResourceCreationProxy::GetConnection() { |
| 370 return Connection( | 379 return Connection( |
| 371 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(), | 380 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(), |
| 372 dispatcher()); | 381 dispatcher()); |
| 373 } | 382 } |
| 374 | 383 |
| 375 } // namespace proxy | 384 } // namespace proxy |
| 376 } // namespace ppapi | 385 } // namespace ppapi |
| OLD | NEW |