Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: ppapi/proxy/resource_creation_proxy.cc

Issue 16667002: Introduce PPB_TCPSocket_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/api_id.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 15 matching lines...) Expand all
26 #include "ppapi/proxy/ppb_audio_proxy.h" 26 #include "ppapi/proxy/ppb_audio_proxy.h"
27 #include "ppapi/proxy/ppb_broker_proxy.h" 27 #include "ppapi/proxy/ppb_broker_proxy.h"
28 #include "ppapi/proxy/ppb_buffer_proxy.h" 28 #include "ppapi/proxy/ppb_buffer_proxy.h"
29 #include "ppapi/proxy/ppb_file_ref_proxy.h" 29 #include "ppapi/proxy/ppb_file_ref_proxy.h"
30 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" 30 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h"
31 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" 31 #include "ppapi/proxy/ppb_graphics_3d_proxy.h"
32 #include "ppapi/proxy/ppb_image_data_proxy.h" 32 #include "ppapi/proxy/ppb_image_data_proxy.h"
33 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" 33 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h"
34 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" 34 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h"
35 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" 35 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
36 #include "ppapi/proxy/ppb_tcp_socket_proxy.h"
36 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 37 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
37 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" 38 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h"
38 #include "ppapi/proxy/printing_resource.h" 39 #include "ppapi/proxy/printing_resource.h"
39 #include "ppapi/proxy/talk_resource.h" 40 #include "ppapi/proxy/talk_resource.h"
40 #include "ppapi/proxy/truetype_font_resource.h" 41 #include "ppapi/proxy/truetype_font_resource.h"
41 #include "ppapi/proxy/udp_socket_private_resource.h" 42 #include "ppapi/proxy/udp_socket_private_resource.h"
42 #include "ppapi/proxy/url_loader_resource.h" 43 #include "ppapi/proxy/url_loader_resource.h"
43 #include "ppapi/proxy/url_request_info_resource.h" 44 #include "ppapi/proxy/url_request_info_resource.h"
44 #include "ppapi/proxy/url_response_info_resource.h" 45 #include "ppapi/proxy/url_response_info_resource.h"
45 #include "ppapi/proxy/video_capture_resource.h" 46 #include "ppapi/proxy/video_capture_resource.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 *ipv4_addr))->GetReference(); 281 *ipv4_addr))->GetReference();
281 } 282 }
282 283
283 PP_Resource ResourceCreationProxy::CreateNetAddressFromIPv6Address( 284 PP_Resource ResourceCreationProxy::CreateNetAddressFromIPv6Address(
284 PP_Instance instance, 285 PP_Instance instance,
285 const PP_NetAddress_IPv6_Dev* ipv6_addr) { 286 const PP_NetAddress_IPv6_Dev* ipv6_addr) {
286 return (new NetAddressResource(GetConnection(), instance, 287 return (new NetAddressResource(GetConnection(), instance,
287 *ipv6_addr))->GetReference(); 288 *ipv6_addr))->GetReference();
288 } 289 }
289 290
291 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate(
292 PP_Instance instance,
293 const PP_NetAddress_Private& private_addr) {
294 return (new NetAddressResource(GetConnection(), instance,
295 private_addr))->GetReference();
296 }
297
290 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( 298 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
291 PP_Instance instance, 299 PP_Instance instance,
292 PPB_NetworkMonitor_Callback callback, 300 PPB_NetworkMonitor_Callback callback,
293 void* user_data) { 301 void* user_data) {
294 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( 302 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(
295 instance, callback, user_data); 303 instance, callback, user_data);
296 } 304 }
297 305
298 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) { 306 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) {
299 return (new PrintingResource(GetConnection(), instance))->GetReference(); 307 return (new PrintingResource(GetConnection(), instance))->GetReference();
300 } 308 }
301 309
302 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( 310 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
303 PP_Instance instance) { 311 PP_Instance instance) {
304 return PPB_TCPServerSocket_Private_Proxy::CreateProxyResource(instance); 312 return PPB_TCPServerSocket_Private_Proxy::CreateProxyResource(instance);
305 } 313 }
306 314
315 PP_Resource ResourceCreationProxy::CreateTCPSocket(
316 PP_Instance instance) {
317 return PPB_TCPSocket_Proxy::CreateProxyResource(instance);
318 }
319
307 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate( 320 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate(
308 PP_Instance instance) { 321 PP_Instance instance) {
309 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance); 322 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance);
310 } 323 }
311 324
312 PP_Resource ResourceCreationProxy::CreateUDPSocketPrivate( 325 PP_Resource ResourceCreationProxy::CreateUDPSocketPrivate(
313 PP_Instance instance) { 326 PP_Instance instance) {
314 return (new UDPSocketPrivateResource( 327 return (new UDPSocketPrivateResource(
315 GetConnection(), instance))->GetReference(); 328 GetConnection(), instance))->GetReference();
316 } 329 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 437 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
425 return false; 438 return false;
426 } 439 }
427 440
428 Connection ResourceCreationProxy::GetConnection() { 441 Connection ResourceCreationProxy::GetConnection() {
429 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 442 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
430 } 443 }
431 444
432 } // namespace proxy 445 } // namespace proxy
433 } // namespace ppapi 446 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/api_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698