Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_proxy.h" | 13 #include "ppapi/proxy/ppb_audio_proxy.h" |
| 14 #include "ppapi/proxy/ppb_buffer_proxy.h" | 14 #include "ppapi/proxy/ppb_buffer_proxy.h" |
| 15 #include "ppapi/proxy/ppb_broker_proxy.h" | 15 #include "ppapi/proxy/ppb_broker_proxy.h" |
| 16 #include "ppapi/proxy/ppb_context_3d_proxy.h" | 16 #include "ppapi/proxy/ppb_context_3d_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_ref_proxy.h" | 18 #include "ppapi/proxy/ppb_file_ref_proxy.h" |
| 19 #include "ppapi/proxy/ppb_file_system_proxy.h" | 19 #include "ppapi/proxy/ppb_file_system_proxy.h" |
| 20 #include "ppapi/proxy/ppb_flash_menu_proxy.h" | 20 #include "ppapi/proxy/ppb_flash_menu_proxy.h" |
| 21 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" | 21 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" |
| 22 #include "ppapi/proxy/ppb_flash_tcp_socket_proxy.h" | 22 #include "ppapi/proxy/ppb_tcp_socket_proxy.h" |
|
yzshen1
2011/11/09 23:53:55
Sort, please.
Dmitry Polukhin
2011/11/10 15:10:11
Done.
| |
| 23 #include "ppapi/proxy/ppb_flash_udp_socket_proxy.h" | 23 #include "ppapi/proxy/ppb_udp_socket_proxy.h" |
| 24 #include "ppapi/proxy/ppb_font_proxy.h" | 24 #include "ppapi/proxy/ppb_font_proxy.h" |
| 25 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" | 25 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" |
| 26 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" | 26 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |
| 27 #include "ppapi/proxy/ppb_image_data_proxy.h" | 27 #include "ppapi/proxy/ppb_image_data_proxy.h" |
| 28 #include "ppapi/proxy/ppb_surface_3d_proxy.h" | 28 #include "ppapi/proxy/ppb_surface_3d_proxy.h" |
| 29 #include "ppapi/proxy/ppb_url_loader_proxy.h" | 29 #include "ppapi/proxy/ppb_url_loader_proxy.h" |
| 30 #include "ppapi/proxy/ppb_video_capture_proxy.h" | 30 #include "ppapi/proxy/ppb_video_capture_proxy.h" |
| 31 #include "ppapi/proxy/ppb_video_decoder_proxy.h" | 31 #include "ppapi/proxy/ppb_video_decoder_proxy.h" |
| 32 #include "ppapi/shared_impl/api_id.h" | 32 #include "ppapi/shared_impl/api_id.h" |
| 33 #include "ppapi/shared_impl/audio_config_impl.h" | 33 #include "ppapi/shared_impl/audio_config_impl.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 PP_Resource ResourceCreationProxy::CreateFlashMenu( | 144 PP_Resource ResourceCreationProxy::CreateFlashMenu( |
| 145 PP_Instance instance, | 145 PP_Instance instance, |
| 146 const PP_Flash_Menu* menu_data) { | 146 const PP_Flash_Menu* menu_data) { |
| 147 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); | 147 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); |
| 148 } | 148 } |
| 149 | 149 |
| 150 PP_Resource ResourceCreationProxy::CreateFlashNetConnector( | 150 PP_Resource ResourceCreationProxy::CreateFlashNetConnector( |
| 151 PP_Instance instance) { | 151 PP_Instance instance) { |
| 152 return PPB_Flash_NetConnector_Proxy::CreateProxyResource(instance); | 152 return PPB_Flash_NetConnector_Proxy::CreateProxyResource(instance); |
| 153 } | 153 } |
| 154 | 154 |
|
yzshen1
2011/11/09 23:53:55
Please also sort method definitions.
Dmitry Polukhin
2011/11/10 15:10:11
Done.
| |
| 155 PP_Resource ResourceCreationProxy::CreateFlashTCPSocket( | 155 PP_Resource ResourceCreationProxy::CreateTCPSocket( |
| 156 PP_Instance instance) { | 156 PP_Instance instance) { |
| 157 return PPB_Flash_TCPSocket_Proxy::CreateProxyResource(instance); | 157 return PPB_TCPSocket_Proxy::CreateProxyResource(instance); |
| 158 } | 158 } |
| 159 | 159 |
| 160 PP_Resource ResourceCreationProxy::CreateFlashUDPSocket( | 160 PP_Resource ResourceCreationProxy::CreateUDPSocket( |
| 161 PP_Instance instance) { | 161 PP_Instance instance) { |
| 162 return PPB_Flash_UDPSocket_Proxy::CreateProxyResource(instance); | 162 return PPB_UDPSocket_Proxy::CreateProxyResource(instance); |
| 163 } | 163 } |
| 164 | 164 |
| 165 PP_Resource ResourceCreationProxy::CreateFontObject( | 165 PP_Resource ResourceCreationProxy::CreateFontObject( |
| 166 PP_Instance instance, | 166 PP_Instance instance, |
| 167 const PP_FontDescription_Dev* description) { | 167 const PP_FontDescription_Dev* description) { |
| 168 if (!ppapi::FontImpl::IsPPFontDescriptionValid(*description)) | 168 if (!ppapi::FontImpl::IsPPFontDescriptionValid(*description)) |
| 169 return 0; | 169 return 0; |
| 170 return (new Font(HostResource::MakeInstanceOnly(instance), *description))-> | 170 return (new Font(HostResource::MakeInstanceOnly(instance), *description))-> |
| 171 GetReference(); | 171 GetReference(); |
| 172 } | 172 } |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 416 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false); | 416 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false); |
| 417 #else | 417 #else |
| 418 *result_image_handle = ImageData::HandleFromInt(handle); | 418 *result_image_handle = ImageData::HandleFromInt(handle); |
| 419 #endif | 419 #endif |
| 420 } | 420 } |
| 421 } | 421 } |
| 422 } | 422 } |
| 423 | 423 |
| 424 } // namespace proxy | 424 } // namespace proxy |
| 425 } // namespace ppapi | 425 } // namespace ppapi |
| OLD | NEW |