| OLD | NEW |
| 1 // Copyright (c) 2011 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 28 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" | 28 #include "ppapi/proxy/ppb_udp_socket_private_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/function_group_base.h" | 33 #include "ppapi/shared_impl/function_group_base.h" |
| 34 #include "ppapi/shared_impl/host_resource.h" | 34 #include "ppapi/shared_impl/host_resource.h" |
| 35 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 35 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
| 36 #include "ppapi/shared_impl/ppb_font_shared.h" | 36 #include "ppapi/shared_impl/ppb_font_shared.h" |
| 37 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 37 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 38 #include "ppapi/shared_impl/ppb_resource_array_shared.h" |
| 38 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" | 39 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" |
| 39 #include "ppapi/shared_impl/var.h" | 40 #include "ppapi/shared_impl/var.h" |
| 40 #include "ppapi/thunk/enter.h" | 41 #include "ppapi/thunk/enter.h" |
| 41 #include "ppapi/thunk/ppb_image_data_api.h" | 42 #include "ppapi/thunk/ppb_image_data_api.h" |
| 42 | 43 |
| 43 using ppapi::thunk::ResourceCreationAPI; | 44 using ppapi::thunk::ResourceCreationAPI; |
| 44 | 45 |
| 45 namespace ppapi { | 46 namespace ppapi { |
| 46 namespace proxy { | 47 namespace proxy { |
| 47 | 48 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 240 |
| 240 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( | 241 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |
| 241 PP_Instance instance, | 242 PP_Instance instance, |
| 242 PP_Resource share_context, | 243 PP_Resource share_context, |
| 243 const int32_t* attrib_list) { | 244 const int32_t* attrib_list) { |
| 244 // Not proxied. The raw creation function is used only in the implementation | 245 // Not proxied. The raw creation function is used only in the implementation |
| 245 // of the proxy on the host side. | 246 // of the proxy on the host side. |
| 246 return 0; | 247 return 0; |
| 247 } | 248 } |
| 248 | 249 |
| 250 PP_Resource ResourceCreationProxy::CreateResourceArray( |
| 251 PP_Instance instance, |
| 252 const PP_Resource elements[], |
| 253 uint32_t size) { |
| 254 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( |
| 255 PPB_ResourceArray_Shared::InitAsProxy(), instance, elements, size); |
| 256 return object->GetReference(); |
| 257 } |
| 258 |
| 249 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, | 259 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, |
| 250 PP_Bool vertical) { | 260 PP_Bool vertical) { |
| 251 NOTIMPLEMENTED(); // Not proxied yet. | 261 NOTIMPLEMENTED(); // Not proxied yet. |
| 252 return 0; | 262 return 0; |
| 253 } | 263 } |
| 254 | 264 |
| 255 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate( | 265 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate( |
| 256 PP_Instance instance) { | 266 PP_Instance instance) { |
| 257 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance); | 267 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance); |
| 258 } | 268 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 336 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
| 327 return dispatcher()->Send(msg); | 337 return dispatcher()->Send(msg); |
| 328 } | 338 } |
| 329 | 339 |
| 330 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 340 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 331 return false; | 341 return false; |
| 332 } | 342 } |
| 333 | 343 |
| 334 } // namespace proxy | 344 } // namespace proxy |
| 335 } // namespace ppapi | 345 } // namespace ppapi |
| OLD | NEW |