| 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 #ifndef CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ppapi/thunk/resource_creation_api.h" | 10 #include "ppapi/thunk/resource_creation_api.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 class PepperPluginInstanceImpl; | 14 class PepperPluginInstanceImpl; |
| 15 | 15 |
| 16 // This is an abstract class. ResourceCreationAPI functions that implement | 16 // This is an abstract class. ResourceCreationAPI functions that implement |
| 17 // "old-style" resources are handled here. See | 17 // "old-style" resources are handled here. See |
| 18 // content/renderer/pepper/pepper_in_process_resource_creation.h for functions | 18 // content/renderer/pepper/pepper_in_process_resource_creation.h for functions |
| 19 // that implement "new-style" resources. | 19 // that implement "new-style" resources. |
| 20 class ResourceCreationImpl : public ::ppapi::thunk::ResourceCreationAPI { | 20 class ResourceCreationImpl : public ::ppapi::thunk::ResourceCreationAPI { |
| 21 public: | 21 public: |
| 22 explicit ResourceCreationImpl(PepperPluginInstanceImpl* instance); | 22 explicit ResourceCreationImpl(PepperPluginInstanceImpl* instance); |
| 23 virtual ~ResourceCreationImpl(); | 23 virtual ~ResourceCreationImpl(); |
| 24 | 24 |
| 25 // ResourceCreationAPI implementation. | 25 // ResourceCreationAPI implementation. |
| 26 virtual PP_Resource CreateAudio1_0(PP_Instance instance, |
| 27 PP_Resource config_id, |
| 28 PPB_Audio_Callback_1_0 audio_callback, |
| 29 void* user_data) OVERRIDE; |
| 26 virtual PP_Resource CreateAudio(PP_Instance instance, | 30 virtual PP_Resource CreateAudio(PP_Instance instance, |
| 27 PP_Resource config_id, | 31 PP_Resource config_id, |
| 28 PPB_Audio_Callback audio_callback, | 32 PPB_Audio_Callback audio_callback, |
| 29 void* user_data) OVERRIDE; | 33 void* user_data) OVERRIDE; |
| 30 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; | 34 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; |
| 31 virtual PP_Resource CreateAudioConfig(PP_Instance instance, | 35 virtual PP_Resource CreateAudioConfig(PP_Instance instance, |
| 32 PP_AudioSampleRate sample_rate, | 36 PP_AudioSampleRate sample_rate, |
| 33 uint32_t sample_frame_count) OVERRIDE; | 37 uint32_t sample_frame_count) OVERRIDE; |
| 34 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE; | 38 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE; |
| 35 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; | 39 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 virtual PP_Resource CreateX509CertificatePrivate( | 144 virtual PP_Resource CreateX509CertificatePrivate( |
| 141 PP_Instance instance) OVERRIDE; | 145 PP_Instance instance) OVERRIDE; |
| 142 | 146 |
| 143 private: | 147 private: |
| 144 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); | 148 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); |
| 145 }; | 149 }; |
| 146 | 150 |
| 147 } // namespace content | 151 } // namespace content |
| 148 | 152 |
| 149 #endif // CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_ | 153 #endif // CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_ |
| OLD | NEW |