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/camera_device_resource.h" | 10 #include "ppapi/proxy/camera_device_resource.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "ppapi/proxy/ppapi_messages.h" | 31 #include "ppapi/proxy/ppapi_messages.h" |
32 #include "ppapi/proxy/ppb_audio_proxy.h" | 32 #include "ppapi/proxy/ppb_audio_proxy.h" |
33 #include "ppapi/proxy/ppb_broker_proxy.h" | 33 #include "ppapi/proxy/ppb_broker_proxy.h" |
34 #include "ppapi/proxy/ppb_buffer_proxy.h" | 34 #include "ppapi/proxy/ppb_buffer_proxy.h" |
35 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" | 35 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" |
36 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" | 36 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |
37 #include "ppapi/proxy/ppb_image_data_proxy.h" | 37 #include "ppapi/proxy/ppb_image_data_proxy.h" |
38 #include "ppapi/proxy/ppb_video_decoder_proxy.h" | 38 #include "ppapi/proxy/ppb_video_decoder_proxy.h" |
39 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" | 39 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" |
40 #include "ppapi/proxy/printing_resource.h" | 40 #include "ppapi/proxy/printing_resource.h" |
41 #include "ppapi/proxy/talk_resource.h" | |
42 #include "ppapi/proxy/tcp_server_socket_private_resource.h" | 41 #include "ppapi/proxy/tcp_server_socket_private_resource.h" |
43 #include "ppapi/proxy/tcp_socket_private_resource.h" | 42 #include "ppapi/proxy/tcp_socket_private_resource.h" |
44 #include "ppapi/proxy/tcp_socket_resource.h" | 43 #include "ppapi/proxy/tcp_socket_resource.h" |
45 #include "ppapi/proxy/truetype_font_resource.h" | 44 #include "ppapi/proxy/truetype_font_resource.h" |
46 #include "ppapi/proxy/udp_socket_private_resource.h" | 45 #include "ppapi/proxy/udp_socket_private_resource.h" |
47 #include "ppapi/proxy/udp_socket_resource.h" | 46 #include "ppapi/proxy/udp_socket_resource.h" |
48 #include "ppapi/proxy/url_loader_resource.h" | 47 #include "ppapi/proxy/url_loader_resource.h" |
49 #include "ppapi/proxy/url_request_info_resource.h" | 48 #include "ppapi/proxy/url_request_info_resource.h" |
50 #include "ppapi/proxy/url_response_info_resource.h" | 49 #include "ppapi/proxy/url_response_info_resource.h" |
51 #include "ppapi/proxy/video_capture_resource.h" | 50 #include "ppapi/proxy/video_capture_resource.h" |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 return (new PlatformVerificationPrivateResource(GetConnection(), instance))-> | 468 return (new PlatformVerificationPrivateResource(GetConnection(), instance))-> |
470 GetReference(); | 469 GetReference(); |
471 } | 470 } |
472 | 471 |
473 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, | 472 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, |
474 PP_Bool vertical) { | 473 PP_Bool vertical) { |
475 NOTIMPLEMENTED(); // Not proxied yet. | 474 NOTIMPLEMENTED(); // Not proxied yet. |
476 return 0; | 475 return 0; |
477 } | 476 } |
478 | 477 |
479 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) { | |
480 return (new TalkResource(GetConnection(), instance))->GetReference(); | |
481 } | |
482 | |
483 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) { | 478 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) { |
484 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); | 479 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); |
485 if (!dispatcher) | 480 if (!dispatcher) |
486 return 0; | 481 return 0; |
487 return (new VideoCaptureResource(GetConnection(), instance, dispatcher)) | 482 return (new VideoCaptureResource(GetConnection(), instance, dispatcher)) |
488 ->GetReference(); | 483 ->GetReference(); |
489 } | 484 } |
490 | 485 |
491 PP_Resource ResourceCreationProxy::CreateVideoDecoderDev( | 486 PP_Resource ResourceCreationProxy::CreateVideoDecoderDev( |
492 PP_Instance instance, | 487 PP_Instance instance, |
(...skipping 12 matching lines...) Expand all Loading... |
505 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 500 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
506 return false; | 501 return false; |
507 } | 502 } |
508 | 503 |
509 Connection ResourceCreationProxy::GetConnection() { | 504 Connection ResourceCreationProxy::GetConnection() { |
510 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 505 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
511 } | 506 } |
512 | 507 |
513 } // namespace proxy | 508 } // namespace proxy |
514 } // namespace ppapi | 509 } // namespace ppapi |
OLD | NEW |