| 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/connection.h" | 10 #include "ppapi/proxy/connection.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| 313 | 313 |
| 314 PP_Resource ResourceCreationProxy::CreateNetworkMonitorPrivate( | 314 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( |
| 315 PP_Instance instance) { | 315 PP_Instance instance) { |
| 316 return (new NetworkMonitorResource(GetConnection(), instance))-> | 316 return (new NetworkMonitorResource(GetConnection(), instance))-> |
| 317 GetReference(); | 317 GetReference(); |
| 318 } | 318 } |
| 319 | 319 |
| 320 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) { | 320 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) { |
| 321 return (new PrintingResource(GetConnection(), instance))->GetReference(); | 321 return (new PrintingResource(GetConnection(), instance))->GetReference(); |
| 322 } | 322 } |
| 323 | 323 |
| 324 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( | 324 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 455 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 456 return false; | 456 return false; |
| 457 } | 457 } |
| 458 | 458 |
| 459 Connection ResourceCreationProxy::GetConnection() { | 459 Connection ResourceCreationProxy::GetConnection() { |
| 460 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 460 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 461 } | 461 } |
| 462 | 462 |
| 463 } // namespace proxy | 463 } // namespace proxy |
| 464 } // namespace ppapi | 464 } // namespace ppapi |
| OLD | NEW |