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 29 matching lines...) Expand all Loading... |
40 #include "ppapi/proxy/tcp_server_socket_private_resource.h" | 40 #include "ppapi/proxy/tcp_server_socket_private_resource.h" |
41 #include "ppapi/proxy/tcp_socket_private_resource.h" | 41 #include "ppapi/proxy/tcp_socket_private_resource.h" |
42 #include "ppapi/proxy/tcp_socket_resource.h" | 42 #include "ppapi/proxy/tcp_socket_resource.h" |
43 #include "ppapi/proxy/truetype_font_resource.h" | 43 #include "ppapi/proxy/truetype_font_resource.h" |
44 #include "ppapi/proxy/udp_socket_private_resource.h" | 44 #include "ppapi/proxy/udp_socket_private_resource.h" |
45 #include "ppapi/proxy/udp_socket_resource.h" | 45 #include "ppapi/proxy/udp_socket_resource.h" |
46 #include "ppapi/proxy/url_loader_resource.h" | 46 #include "ppapi/proxy/url_loader_resource.h" |
47 #include "ppapi/proxy/url_request_info_resource.h" | 47 #include "ppapi/proxy/url_request_info_resource.h" |
48 #include "ppapi/proxy/url_response_info_resource.h" | 48 #include "ppapi/proxy/url_response_info_resource.h" |
49 #include "ppapi/proxy/video_capture_resource.h" | 49 #include "ppapi/proxy/video_capture_resource.h" |
| 50 #include "ppapi/proxy/video_decoder_resource.h" |
50 #include "ppapi/proxy/video_destination_resource.h" | 51 #include "ppapi/proxy/video_destination_resource.h" |
51 #include "ppapi/proxy/video_source_resource.h" | 52 #include "ppapi/proxy/video_source_resource.h" |
52 #include "ppapi/proxy/websocket_resource.h" | 53 #include "ppapi/proxy/websocket_resource.h" |
53 #include "ppapi/shared_impl/api_id.h" | 54 #include "ppapi/shared_impl/api_id.h" |
54 #include "ppapi/shared_impl/host_resource.h" | 55 #include "ppapi/shared_impl/host_resource.h" |
55 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 56 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
56 #include "ppapi/shared_impl/ppb_audio_shared.h" | 57 #include "ppapi/shared_impl/ppb_audio_shared.h" |
57 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 58 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
58 #include "ppapi/shared_impl/var.h" | 59 #include "ppapi/shared_impl/var.h" |
59 #include "ppapi/thunk/enter.h" | 60 #include "ppapi/thunk/enter.h" |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 PP_Resource ResourceCreationProxy::CreateUDPSocket(PP_Instance instance) { | 363 PP_Resource ResourceCreationProxy::CreateUDPSocket(PP_Instance instance) { |
363 return (new UDPSocketResource(GetConnection(), instance))->GetReference(); | 364 return (new UDPSocketResource(GetConnection(), instance))->GetReference(); |
364 } | 365 } |
365 | 366 |
366 PP_Resource ResourceCreationProxy::CreateUDPSocketPrivate( | 367 PP_Resource ResourceCreationProxy::CreateUDPSocketPrivate( |
367 PP_Instance instance) { | 368 PP_Instance instance) { |
368 return (new UDPSocketPrivateResource( | 369 return (new UDPSocketPrivateResource( |
369 GetConnection(), instance))->GetReference(); | 370 GetConnection(), instance))->GetReference(); |
370 } | 371 } |
371 | 372 |
| 373 PP_Resource ResourceCreationProxy::CreateVideoDecoder(PP_Instance instance) { |
| 374 return (new VideoDecoderResource(GetConnection(), instance))->GetReference(); |
| 375 } |
| 376 |
372 PP_Resource ResourceCreationProxy::CreateVideoDestination( | 377 PP_Resource ResourceCreationProxy::CreateVideoDestination( |
373 PP_Instance instance) { | 378 PP_Instance instance) { |
374 return (new VideoDestinationResource(GetConnection(), | 379 return (new VideoDestinationResource(GetConnection(), |
375 instance))->GetReference(); | 380 instance))->GetReference(); |
376 } | 381 } |
377 | 382 |
378 PP_Resource ResourceCreationProxy::CreateVideoSource( | 383 PP_Resource ResourceCreationProxy::CreateVideoSource( |
379 PP_Instance instance) { | 384 PP_Instance instance) { |
380 return (new VideoSourceResource(GetConnection(), instance))->GetReference(); | 385 return (new VideoSourceResource(GetConnection(), instance))->GetReference(); |
381 } | 386 } |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 487 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
483 return false; | 488 return false; |
484 } | 489 } |
485 | 490 |
486 Connection ResourceCreationProxy::GetConnection() { | 491 Connection ResourceCreationProxy::GetConnection() { |
487 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 492 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
488 } | 493 } |
489 | 494 |
490 } // namespace proxy | 495 } // namespace proxy |
491 } // namespace ppapi | 496 } // namespace ppapi |
OLD | NEW |