| 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 "content/renderer/pepper/resource_creation_impl.h" | 5 #include "content/renderer/pepper/resource_creation_impl.h" |
| 6 | 6 |
| 7 #include "content/common/content_switches_internal.h" | 7 #include "content/common/content_switches_internal.h" |
| 8 #include "content/renderer/pepper/ppb_audio_impl.h" | 8 #include "content/renderer/pepper/ppb_audio_impl.h" |
| 9 #include "content/renderer/pepper/ppb_broker_impl.h" | 9 #include "content/renderer/pepper/ppb_broker_impl.h" |
| 10 #include "content/renderer/pepper/ppb_buffer_impl.h" | 10 #include "content/renderer/pepper/ppb_buffer_impl.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 PP_AudioSampleRate sample_rate, | 58 PP_AudioSampleRate sample_rate, |
| 59 uint32_t sample_frame_count) { | 59 uint32_t sample_frame_count) { |
| 60 return ppapi::PPB_AudioConfig_Shared::Create( | 60 return ppapi::PPB_AudioConfig_Shared::Create( |
| 61 ppapi::OBJECT_IS_IMPL, instance, sample_rate, sample_frame_count); | 61 ppapi::OBJECT_IS_IMPL, instance, sample_rate, sample_frame_count); |
| 62 } | 62 } |
| 63 | 63 |
| 64 PP_Resource ResourceCreationImpl::CreateAudioTrusted(PP_Instance instance) { | 64 PP_Resource ResourceCreationImpl::CreateAudioTrusted(PP_Instance instance) { |
| 65 return (new PPB_Audio_Impl(instance))->GetReference(); | 65 return (new PPB_Audio_Impl(instance))->GetReference(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 PP_Resource ResourceCreationImpl::CreateAudioEncoder(PP_Instance instance) { |
| 69 return 0; // Not supported in-process. |
| 70 } |
| 71 |
| 68 PP_Resource ResourceCreationImpl::CreateAudioInput(PP_Instance instance) { | 72 PP_Resource ResourceCreationImpl::CreateAudioInput(PP_Instance instance) { |
| 69 return 0; // Not supported in-process. | 73 return 0; // Not supported in-process. |
| 70 } | 74 } |
| 71 | 75 |
| 72 PP_Resource ResourceCreationImpl::CreateCompositor(PP_Instance instance) { | 76 PP_Resource ResourceCreationImpl::CreateCompositor(PP_Instance instance) { |
| 73 return 0; // Not supported in-process. | 77 return 0; // Not supported in-process. |
| 74 } | 78 } |
| 75 | 79 |
| 76 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { | 80 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { |
| 77 return (new PPB_Broker_Impl(instance))->GetReference(); | 81 return (new PPB_Broker_Impl(instance))->GetReference(); |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 wheel_ticks, | 366 wheel_ticks, |
| 363 scroll_by_page); | 367 scroll_by_page); |
| 364 } | 368 } |
| 365 | 369 |
| 366 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 370 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 367 PP_Instance instance) { | 371 PP_Instance instance) { |
| 368 return 0; // Not supported in-process. | 372 return 0; // Not supported in-process. |
| 369 } | 373 } |
| 370 | 374 |
| 371 } // namespace content | 375 } // namespace content |
| OLD | NEW |