| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "ppapi/proxy/udp_socket_private_resource.h" | 45 #include "ppapi/proxy/udp_socket_private_resource.h" |
| 46 #include "ppapi/proxy/udp_socket_resource.h" | 46 #include "ppapi/proxy/udp_socket_resource.h" |
| 47 #include "ppapi/proxy/url_loader_resource.h" | 47 #include "ppapi/proxy/url_loader_resource.h" |
| 48 #include "ppapi/proxy/url_request_info_resource.h" | 48 #include "ppapi/proxy/url_request_info_resource.h" |
| 49 #include "ppapi/proxy/url_response_info_resource.h" | 49 #include "ppapi/proxy/url_response_info_resource.h" |
| 50 #include "ppapi/proxy/video_capture_resource.h" | 50 #include "ppapi/proxy/video_capture_resource.h" |
| 51 #include "ppapi/proxy/video_decoder_resource.h" | 51 #include "ppapi/proxy/video_decoder_resource.h" |
| 52 #include "ppapi/proxy/video_destination_resource.h" | 52 #include "ppapi/proxy/video_destination_resource.h" |
| 53 #include "ppapi/proxy/video_encoder_resource.h" | 53 #include "ppapi/proxy/video_encoder_resource.h" |
| 54 #include "ppapi/proxy/video_source_resource.h" | 54 #include "ppapi/proxy/video_source_resource.h" |
| 55 #include "ppapi/proxy/vpn_provider_resource.h" |
| 55 #include "ppapi/proxy/websocket_resource.h" | 56 #include "ppapi/proxy/websocket_resource.h" |
| 56 #include "ppapi/shared_impl/api_id.h" | 57 #include "ppapi/shared_impl/api_id.h" |
| 57 #include "ppapi/shared_impl/host_resource.h" | 58 #include "ppapi/shared_impl/host_resource.h" |
| 58 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 59 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
| 59 #include "ppapi/shared_impl/ppb_audio_shared.h" | 60 #include "ppapi/shared_impl/ppb_audio_shared.h" |
| 60 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 61 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 61 #include "ppapi/shared_impl/var.h" | 62 #include "ppapi/shared_impl/var.h" |
| 62 #include "ppapi/thunk/enter.h" | 63 #include "ppapi/thunk/enter.h" |
| 63 #include "ppapi/thunk/ppb_image_data_api.h" | 64 #include "ppapi/thunk/ppb_image_data_api.h" |
| 64 | 65 |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 396 |
| 396 PP_Resource ResourceCreationProxy::CreateVideoEncoder(PP_Instance instance) { | 397 PP_Resource ResourceCreationProxy::CreateVideoEncoder(PP_Instance instance) { |
| 397 return (new VideoEncoderResource(GetConnection(), instance))->GetReference(); | 398 return (new VideoEncoderResource(GetConnection(), instance))->GetReference(); |
| 398 } | 399 } |
| 399 | 400 |
| 400 PP_Resource ResourceCreationProxy::CreateVideoSource( | 401 PP_Resource ResourceCreationProxy::CreateVideoSource( |
| 401 PP_Instance instance) { | 402 PP_Instance instance) { |
| 402 return (new VideoSourceResource(GetConnection(), instance))->GetReference(); | 403 return (new VideoSourceResource(GetConnection(), instance))->GetReference(); |
| 403 } | 404 } |
| 404 | 405 |
| 406 PP_Resource ResourceCreationProxy::CreateVpnProvider(PP_Instance instance) { |
| 407 return (new VpnProviderResource(GetConnection(), instance))->GetReference(); |
| 408 } |
| 409 |
| 405 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) { | 410 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) { |
| 406 return (new WebSocketResource(GetConnection(), instance))->GetReference(); | 411 return (new WebSocketResource(GetConnection(), instance))->GetReference(); |
| 407 } | 412 } |
| 408 | 413 |
| 409 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate( | 414 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate( |
| 410 PP_Instance instance) { | 415 PP_Instance instance) { |
| 411 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance); | 416 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance); |
| 412 } | 417 } |
| 413 | 418 |
| 414 #if !defined(OS_NACL) | 419 #if !defined(OS_NACL) |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 499 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 495 return false; | 500 return false; |
| 496 } | 501 } |
| 497 | 502 |
| 498 Connection ResourceCreationProxy::GetConnection() { | 503 Connection ResourceCreationProxy::GetConnection() { |
| 499 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 504 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 500 } | 505 } |
| 501 | 506 |
| 502 } // namespace proxy | 507 } // namespace proxy |
| 503 } // namespace ppapi | 508 } // namespace ppapi |
| OLD | NEW |