| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 *ipv6_addr))->GetReference(); | 305 *ipv6_addr))->GetReference(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate( | 308 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate( |
| 309 PP_Instance instance, | 309 PP_Instance instance, |
| 310 const PP_NetAddress_Private& private_addr) { | 310 const PP_NetAddress_Private& private_addr) { |
| 311 return (new NetAddressResource(GetConnection(), instance, | 311 return (new NetAddressResource(GetConnection(), instance, |
| 312 private_addr))->GetReference(); | 312 private_addr))->GetReference(); |
| 313 } | 313 } |
| 314 | 314 |
| 315 PP_Resource ResourceCreationProxy::CreateNetworkMonitorPrivate( | 315 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( |
| 316 PP_Instance instance) { | 316 PP_Instance instance) { |
| 317 return (new NetworkMonitorResource(GetConnection(), instance))-> | 317 return (new NetworkMonitorResource(GetConnection(), instance))-> |
| 318 GetReference(); | 318 GetReference(); |
| 319 } | 319 } |
| 320 | 320 |
| 321 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) { | 321 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) { |
| 322 return (new PrintingResource(GetConnection(), instance))->GetReference(); | 322 return (new PrintingResource(GetConnection(), instance))->GetReference(); |
| 323 } | 323 } |
| 324 | 324 |
| 325 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( | 325 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 462 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 463 return false; | 463 return false; |
| 464 } | 464 } |
| 465 | 465 |
| 466 Connection ResourceCreationProxy::GetConnection() { | 466 Connection ResourceCreationProxy::GetConnection() { |
| 467 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 467 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 468 } | 468 } |
| 469 | 469 |
| 470 } // namespace proxy | 470 } // namespace proxy |
| 471 } // namespace ppapi | 471 } // namespace ppapi |
| OLD | NEW |