Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

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

Issue 22923014: TCPSockets are switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 7 years, 4 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
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/connection.h" 10 #include "ppapi/proxy/connection.h"
(...skipping 13 matching lines...) Expand all
24 #include "ppapi/proxy/plugin_resource_tracker.h" 24 #include "ppapi/proxy/plugin_resource_tracker.h"
25 #include "ppapi/proxy/ppapi_messages.h" 25 #include "ppapi/proxy/ppapi_messages.h"
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_socket_private_proxy.h"
35 #include "ppapi/proxy/ppb_tcp_socket_proxy.h"
36 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 34 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
37 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" 35 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h"
38 #include "ppapi/proxy/printing_resource.h" 36 #include "ppapi/proxy/printing_resource.h"
39 #include "ppapi/proxy/talk_resource.h" 37 #include "ppapi/proxy/talk_resource.h"
40 #include "ppapi/proxy/tcp_server_socket_private_resource.h" 38 #include "ppapi/proxy/tcp_server_socket_private_resource.h"
39 #include "ppapi/proxy/tcp_socket_private_resource.h"
40 #include "ppapi/proxy/tcp_socket_resource.h"
41 #include "ppapi/proxy/truetype_font_resource.h" 41 #include "ppapi/proxy/truetype_font_resource.h"
42 #include "ppapi/proxy/udp_socket_private_resource.h" 42 #include "ppapi/proxy/udp_socket_private_resource.h"
43 #include "ppapi/proxy/udp_socket_resource.h" 43 #include "ppapi/proxy/udp_socket_resource.h"
44 #include "ppapi/proxy/url_loader_resource.h" 44 #include "ppapi/proxy/url_loader_resource.h"
45 #include "ppapi/proxy/url_request_info_resource.h" 45 #include "ppapi/proxy/url_request_info_resource.h"
46 #include "ppapi/proxy/url_response_info_resource.h" 46 #include "ppapi/proxy/url_response_info_resource.h"
47 #include "ppapi/proxy/video_capture_resource.h" 47 #include "ppapi/proxy/video_capture_resource.h"
48 #include "ppapi/proxy/video_destination_resource.h" 48 #include "ppapi/proxy/video_destination_resource.h"
49 #include "ppapi/proxy/video_source_resource.h" 49 #include "ppapi/proxy/video_source_resource.h"
50 #include "ppapi/proxy/websocket_resource.h" 50 #include "ppapi/proxy/websocket_resource.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 323 }
324 324
325 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( 325 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
326 PP_Instance instance) { 326 PP_Instance instance) {
327 return (new TCPServerSocketPrivateResource(GetConnection(), instance))-> 327 return (new TCPServerSocketPrivateResource(GetConnection(), instance))->
328 GetReference(); 328 GetReference();
329 } 329 }
330 330
331 PP_Resource ResourceCreationProxy::CreateTCPSocket( 331 PP_Resource ResourceCreationProxy::CreateTCPSocket(
332 PP_Instance instance) { 332 PP_Instance instance) {
333 return PPB_TCPSocket_Proxy::CreateProxyResource(instance); 333 return (new TCPSocketResource(GetConnection(), instance))->GetReference();
334 } 334 }
335 335
336 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate( 336 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate(
337 PP_Instance instance) { 337 PP_Instance instance) {
338 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance); 338 return (new TCPSocketPrivateResource(GetConnection(), instance))->
339 GetReference();
339 } 340 }
340 341
341 PP_Resource ResourceCreationProxy::CreateUDPSocket(PP_Instance instance) { 342 PP_Resource ResourceCreationProxy::CreateUDPSocket(PP_Instance instance) {
342 return (new UDPSocketResource(GetConnection(), instance))->GetReference(); 343 return (new UDPSocketResource(GetConnection(), instance))->GetReference();
343 } 344 }
344 345
345 PP_Resource ResourceCreationProxy::CreateUDPSocketPrivate( 346 PP_Resource ResourceCreationProxy::CreateUDPSocketPrivate(
346 PP_Instance instance) { 347 PP_Instance instance) {
347 return (new UDPSocketPrivateResource( 348 return (new UDPSocketPrivateResource(
348 GetConnection(), instance))->GetReference(); 349 GetConnection(), instance))->GetReference();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 456 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
456 return false; 457 return false;
457 } 458 }
458 459
459 Connection ResourceCreationProxy::GetConnection() { 460 Connection ResourceCreationProxy::GetConnection() {
460 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 461 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
461 } 462 }
462 463
463 } // namespace proxy 464 } // namespace proxy
464 } // namespace ppapi 465 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698