| 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 "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/c/pp_size.h" | 9 #include "ppapi/c/pp_size.h" |
| 10 #include "ppapi/proxy/audio_encoder_resource.h" | 10 #include "ppapi/proxy/audio_encoder_resource.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "ppapi/proxy/udp_socket_private_resource.h" | 47 #include "ppapi/proxy/udp_socket_private_resource.h" |
| 48 #include "ppapi/proxy/udp_socket_resource.h" | 48 #include "ppapi/proxy/udp_socket_resource.h" |
| 49 #include "ppapi/proxy/url_loader_resource.h" | 49 #include "ppapi/proxy/url_loader_resource.h" |
| 50 #include "ppapi/proxy/url_request_info_resource.h" | 50 #include "ppapi/proxy/url_request_info_resource.h" |
| 51 #include "ppapi/proxy/url_response_info_resource.h" | 51 #include "ppapi/proxy/url_response_info_resource.h" |
| 52 #include "ppapi/proxy/video_capture_resource.h" | 52 #include "ppapi/proxy/video_capture_resource.h" |
| 53 #include "ppapi/proxy/video_decoder_resource.h" | 53 #include "ppapi/proxy/video_decoder_resource.h" |
| 54 #include "ppapi/proxy/video_destination_resource.h" | 54 #include "ppapi/proxy/video_destination_resource.h" |
| 55 #include "ppapi/proxy/video_encoder_resource.h" | 55 #include "ppapi/proxy/video_encoder_resource.h" |
| 56 #include "ppapi/proxy/video_source_resource.h" | 56 #include "ppapi/proxy/video_source_resource.h" |
| 57 #include "ppapi/proxy/vpn_provider_resource.h" |
| 57 #include "ppapi/proxy/websocket_resource.h" | 58 #include "ppapi/proxy/websocket_resource.h" |
| 58 #include "ppapi/shared_impl/api_id.h" | 59 #include "ppapi/shared_impl/api_id.h" |
| 59 #include "ppapi/shared_impl/host_resource.h" | 60 #include "ppapi/shared_impl/host_resource.h" |
| 60 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 61 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
| 61 #include "ppapi/shared_impl/ppb_audio_shared.h" | 62 #include "ppapi/shared_impl/ppb_audio_shared.h" |
| 62 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 63 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 63 #include "ppapi/shared_impl/var.h" | 64 #include "ppapi/shared_impl/var.h" |
| 64 #include "ppapi/thunk/enter.h" | 65 #include "ppapi/thunk/enter.h" |
| 65 #include "ppapi/thunk/ppb_image_data_api.h" | 66 #include "ppapi/thunk/ppb_image_data_api.h" |
| 66 | 67 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 | 403 |
| 403 PP_Resource ResourceCreationProxy::CreateVideoEncoder(PP_Instance instance) { | 404 PP_Resource ResourceCreationProxy::CreateVideoEncoder(PP_Instance instance) { |
| 404 return (new VideoEncoderResource(GetConnection(), instance))->GetReference(); | 405 return (new VideoEncoderResource(GetConnection(), instance))->GetReference(); |
| 405 } | 406 } |
| 406 | 407 |
| 407 PP_Resource ResourceCreationProxy::CreateVideoSource( | 408 PP_Resource ResourceCreationProxy::CreateVideoSource( |
| 408 PP_Instance instance) { | 409 PP_Instance instance) { |
| 409 return (new VideoSourceResource(GetConnection(), instance))->GetReference(); | 410 return (new VideoSourceResource(GetConnection(), instance))->GetReference(); |
| 410 } | 411 } |
| 411 | 412 |
| 413 PP_Resource ResourceCreationProxy::CreateVpnProvider(PP_Instance instance) { |
| 414 return (new VpnProviderResource(GetConnection(), instance))->GetReference(); |
| 415 } |
| 416 |
| 412 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) { | 417 PP_Resource ResourceCreationProxy::CreateWebSocket(PP_Instance instance) { |
| 413 return (new WebSocketResource(GetConnection(), instance))->GetReference(); | 418 return (new WebSocketResource(GetConnection(), instance))->GetReference(); |
| 414 } | 419 } |
| 415 | 420 |
| 416 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate( | 421 PP_Resource ResourceCreationProxy::CreateX509CertificatePrivate( |
| 417 PP_Instance instance) { | 422 PP_Instance instance) { |
| 418 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance); | 423 return PPB_X509Certificate_Private_Proxy::CreateProxyResource(instance); |
| 419 } | 424 } |
| 420 | 425 |
| 421 #if !defined(OS_NACL) | 426 #if !defined(OS_NACL) |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 506 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 502 return false; | 507 return false; |
| 503 } | 508 } |
| 504 | 509 |
| 505 Connection ResourceCreationProxy::GetConnection() { | 510 Connection ResourceCreationProxy::GetConnection() { |
| 506 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 511 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 507 } | 512 } |
| 508 | 513 |
| 509 } // namespace proxy | 514 } // namespace proxy |
| 510 } // namespace ppapi | 515 } // namespace ppapi |
| OLD | NEW |