| 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/c/trusted/ppb_image_data_trusted.h" | 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 uint32_t sample_frame_count) { | 77 uint32_t sample_frame_count) { |
| 78 return PPB_AudioConfig_Shared::Create( | 78 return PPB_AudioConfig_Shared::Create( |
| 79 OBJECT_IS_PROXY, instance, sample_rate, sample_frame_count); | 79 OBJECT_IS_PROXY, instance, sample_rate, sample_frame_count); |
| 80 } | 80 } |
| 81 | 81 |
| 82 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) { | 82 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) { |
| 83 // Proxied plugins can't created trusted audio devices. | 83 // Proxied plugins can't created trusted audio devices. |
| 84 return 0; | 84 return 0; |
| 85 } | 85 } |
| 86 | 86 |
| 87 PP_Resource ResourceCreationProxy::CreateAudioInput( | 87 PP_Resource ResourceCreationProxy::CreateAudioInput0_1( |
| 88 PP_Instance instance, | 88 PP_Instance instance, |
| 89 PP_Resource config_id, | 89 PP_Resource config_id, |
| 90 PPB_AudioInput_Callback audio_input_callback, | 90 PPB_AudioInput_Callback audio_input_callback, |
| 91 void* user_data) { | 91 void* user_data) { |
| 92 return PPB_AudioInput_Proxy::CreateProxyResource(instance, config_id, | 92 return PPB_AudioInput_Proxy::CreateProxyResource0_1(instance, config_id, |
| 93 audio_input_callback, | 93 audio_input_callback, |
| 94 user_data); | 94 user_data); |
| 95 } | 95 } |
| 96 | 96 |
| 97 PP_Resource ResourceCreationProxy::CreateAudioInputTrusted( | 97 PP_Resource ResourceCreationProxy::CreateAudioInput( |
| 98 PP_Instance instance) { | 98 PP_Instance instance) { |
| 99 // Proxied plugins can't created trusted audio input devices. | 99 return PPB_AudioInput_Proxy::CreateProxyResource(instance); |
| 100 return 0; | |
| 101 } | 100 } |
| 102 | 101 |
| 103 PP_Resource ResourceCreationProxy::CreateBroker(PP_Instance instance) { | 102 PP_Resource ResourceCreationProxy::CreateBroker(PP_Instance instance) { |
| 104 return PPB_Broker_Proxy::CreateProxyResource(instance); | 103 return PPB_Broker_Proxy::CreateProxyResource(instance); |
| 105 } | 104 } |
| 106 | 105 |
| 107 PP_Resource ResourceCreationProxy::CreateBrowserFont( | 106 PP_Resource ResourceCreationProxy::CreateBrowserFont( |
| 108 PP_Instance instance, | 107 PP_Instance instance, |
| 109 const PP_BrowserFont_Trusted_Description* description) { | 108 const PP_BrowserFont_Trusted_Description* description) { |
| 110 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); | 109 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 347 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
| 349 return dispatcher()->Send(msg); | 348 return dispatcher()->Send(msg); |
| 350 } | 349 } |
| 351 | 350 |
| 352 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 351 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 353 return false; | 352 return false; |
| 354 } | 353 } |
| 355 | 354 |
| 356 } // namespace proxy | 355 } // namespace proxy |
| 357 } // namespace ppapi | 356 } // namespace ppapi |
| OLD | NEW |