| 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 WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_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 #include "webkit/plugins/webkit_plugins_export.h" | 11 #include "webkit/plugins/webkit_plugins_export.h" |
| 12 | 12 |
| 13 namespace webkit { | 13 namespace webkit { |
| 14 namespace ppapi { | 14 namespace ppapi { |
| 15 | 15 |
| 16 class PluginInstance; | 16 class PluginInstanceImpl; |
| 17 | 17 |
| 18 // This is an abstract class. ResourceCreationAPI functions that implement | 18 // This is an abstract class. ResourceCreationAPI functions that implement |
| 19 // "old-style" resources are handled here. See | 19 // "old-style" resources are handled here. See |
| 20 // content/renderer/pepper/pepper_in_process_resource_creation.h for functions | 20 // content/renderer/pepper/pepper_in_process_resource_creation.h for functions |
| 21 // that implement "new-style" resources. | 21 // that implement "new-style" resources. |
| 22 class WEBKIT_PLUGINS_EXPORT ResourceCreationImpl | 22 class WEBKIT_PLUGINS_EXPORT ResourceCreationImpl |
| 23 : public NON_EXPORTED_BASE(::ppapi::thunk::ResourceCreationAPI) { | 23 : public NON_EXPORTED_BASE(::ppapi::thunk::ResourceCreationAPI) { |
| 24 public: | 24 public: |
| 25 explicit ResourceCreationImpl(PluginInstance* instance); | 25 explicit ResourceCreationImpl(PluginInstanceImpl* instance); |
| 26 virtual ~ResourceCreationImpl(); | 26 virtual ~ResourceCreationImpl(); |
| 27 | 27 |
| 28 // ResourceCreationAPI implementation. | 28 // ResourceCreationAPI implementation. |
| 29 virtual PP_Resource CreateAudio(PP_Instance instance, | 29 virtual PP_Resource CreateAudio(PP_Instance instance, |
| 30 PP_Resource config_id, | 30 PP_Resource config_id, |
| 31 PPB_Audio_Callback audio_callback, | 31 PPB_Audio_Callback audio_callback, |
| 32 void* user_data) OVERRIDE; | 32 void* user_data) OVERRIDE; |
| 33 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; | 33 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; |
| 34 virtual PP_Resource CreateAudioConfig(PP_Instance instance, | 34 virtual PP_Resource CreateAudioConfig(PP_Instance instance, |
| 35 PP_AudioSampleRate sample_rate, | 35 PP_AudioSampleRate sample_rate, |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 PP_Instance instance) OVERRIDE; | 144 PP_Instance instance) OVERRIDE; |
| 145 | 145 |
| 146 private: | 146 private: |
| 147 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); | 147 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 } // namespace ppapi | 150 } // namespace ppapi |
| 151 } // namespace webkit | 151 } // namespace webkit |
| 152 | 152 |
| 153 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ | 153 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ |
| OLD | NEW |