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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 PP_AudioSampleRate sample_rate, | 57 PP_AudioSampleRate sample_rate, |
58 uint32_t sample_frame_count) { | 58 uint32_t sample_frame_count) { |
59 return ppapi::PPB_AudioConfig_Shared::Create( | 59 return ppapi::PPB_AudioConfig_Shared::Create( |
60 ppapi::OBJECT_IS_IMPL, instance, sample_rate, sample_frame_count); | 60 ppapi::OBJECT_IS_IMPL, instance, sample_rate, sample_frame_count); |
61 } | 61 } |
62 | 62 |
63 PP_Resource ResourceCreationImpl::CreateAudioTrusted(PP_Instance instance) { | 63 PP_Resource ResourceCreationImpl::CreateAudioTrusted(PP_Instance instance) { |
64 return (new PPB_Audio_Impl(instance))->GetReference(); | 64 return (new PPB_Audio_Impl(instance))->GetReference(); |
65 } | 65 } |
66 | 66 |
| 67 PP_Resource ResourceCreationImpl::CreateAudioEncoder(PP_Instance instance) { |
| 68 return 0; // Not supported in-process. |
| 69 } |
| 70 |
67 PP_Resource ResourceCreationImpl::CreateAudioInput(PP_Instance instance) { | 71 PP_Resource ResourceCreationImpl::CreateAudioInput(PP_Instance instance) { |
68 return 0; // Not supported in-process. | 72 return 0; // Not supported in-process. |
69 } | 73 } |
70 | 74 |
71 PP_Resource ResourceCreationImpl::CreateCompositor(PP_Instance instance) { | 75 PP_Resource ResourceCreationImpl::CreateCompositor(PP_Instance instance) { |
72 return 0; // Not supported in-process. | 76 return 0; // Not supported in-process. |
73 } | 77 } |
74 | 78 |
75 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { | 79 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { |
76 return (new PPB_Broker_Impl(instance))->GetReference(); | 80 return (new PPB_Broker_Impl(instance))->GetReference(); |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 wheel_ticks, | 360 wheel_ticks, |
357 scroll_by_page); | 361 scroll_by_page); |
358 } | 362 } |
359 | 363 |
360 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 364 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
361 PP_Instance instance) { | 365 PP_Instance instance) { |
362 return 0; // Not supported in-process. | 366 return 0; // Not supported in-process. |
363 } | 367 } |
364 | 368 |
365 } // namespace content | 369 } // namespace content |
OLD | NEW |