| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::CreateAudioInput( |
| 88 PP_Instance instance, | 88 PP_Instance instance, |
| 89 PP_Resource config_id, | 89 PP_Resource config_id, |
| 90 PPB_Audio_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::CreateProxyResource(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::CreateAudioInputTrusted( |
| 98 PP_Instance instance) { | 98 PP_Instance instance) { |
| 99 // Proxied plugins can't created trusted audio input devices. | 99 // Proxied plugins can't created trusted audio input devices. |
| 100 return 0; | 100 return 0; |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false); | 439 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false); |
| 440 #else | 440 #else |
| 441 *result_image_handle = ImageData::HandleFromInt(handle); | 441 *result_image_handle = ImageData::HandleFromInt(handle); |
| 442 #endif | 442 #endif |
| 443 } | 443 } |
| 444 } | 444 } |
| 445 } | 445 } |
| 446 | 446 |
| 447 } // namespace proxy | 447 } // namespace proxy |
| 448 } // namespace ppapi | 448 } // namespace ppapi |
| OLD | NEW |