| 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/proxy/audio_input_resource.h" | 9 #include "ppapi/proxy/audio_input_resource.h" |
| 10 #include "ppapi/proxy/browser_font_resource_trusted.h" | 10 #include "ppapi/proxy/browser_font_resource_trusted.h" |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 const PP_Size* size, | 285 const PP_Size* size, |
| 286 PP_Bool init_to_zero) { | 286 PP_Bool init_to_zero) { |
| 287 return PPB_ImageData_Proxy::CreateProxyResource( | 287 return PPB_ImageData_Proxy::CreateProxyResource( |
| 288 instance, | 288 instance, |
| 289 PPB_ImageData_Shared::SIMPLE, | 289 PPB_ImageData_Shared::SIMPLE, |
| 290 format, *size, init_to_zero); | 290 format, *size, init_to_zero); |
| 291 } | 291 } |
| 292 | 292 |
| 293 PP_Resource ResourceCreationProxy::CreateNetAddressFromIPv4Address( | 293 PP_Resource ResourceCreationProxy::CreateNetAddressFromIPv4Address( |
| 294 PP_Instance instance, | 294 PP_Instance instance, |
| 295 const PP_NetAddress_IPv4_Dev* ipv4_addr) { | 295 const PP_NetAddress_IPv4* ipv4_addr) { |
| 296 return (new NetAddressResource(GetConnection(), instance, | 296 return (new NetAddressResource(GetConnection(), instance, |
| 297 *ipv4_addr))->GetReference(); | 297 *ipv4_addr))->GetReference(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 PP_Resource ResourceCreationProxy::CreateNetAddressFromIPv6Address( | 300 PP_Resource ResourceCreationProxy::CreateNetAddressFromIPv6Address( |
| 301 PP_Instance instance, | 301 PP_Instance instance, |
| 302 const PP_NetAddress_IPv6_Dev* ipv6_addr) { | 302 const PP_NetAddress_IPv6* ipv6_addr) { |
| 303 return (new NetAddressResource(GetConnection(), instance, | 303 return (new NetAddressResource(GetConnection(), instance, |
| 304 *ipv6_addr))->GetReference(); | 304 *ipv6_addr))->GetReference(); |
| 305 } | 305 } |
| 306 | 306 |
| 307 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate( | 307 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate( |
| 308 PP_Instance instance, | 308 PP_Instance instance, |
| 309 const PP_NetAddress_Private& private_addr) { | 309 const PP_NetAddress_Private& private_addr) { |
| 310 return (new NetAddressResource(GetConnection(), instance, | 310 return (new NetAddressResource(GetConnection(), instance, |
| 311 private_addr))->GetReference(); | 311 private_addr))->GetReference(); |
| 312 } | 312 } |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 457 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 458 return false; | 458 return false; |
| 459 } | 459 } |
| 460 | 460 |
| 461 Connection ResourceCreationProxy::GetConnection() { | 461 Connection ResourceCreationProxy::GetConnection() { |
| 462 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 462 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 463 } | 463 } |
| 464 | 464 |
| 465 } // namespace proxy | 465 } // namespace proxy |
| 466 } // namespace ppapi | 466 } // namespace ppapi |
| OLD | NEW |