| 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 | 12 |
| 12 namespace webkit { | 13 namespace webkit { |
| 13 namespace ppapi { | 14 namespace ppapi { |
| 14 | 15 |
| 15 class PluginInstance; | 16 class PluginInstance; |
| 16 | 17 |
| 17 class ResourceCreationImpl : public ::ppapi::thunk::ResourceCreationAPI { | 18 class WEBKIT_PLUGINS_EXPORT ResourceCreationImpl |
| 19 : public NON_EXPORTED_BASE(::ppapi::thunk::ResourceCreationAPI) { |
| 18 public: | 20 public: |
| 19 explicit ResourceCreationImpl(PluginInstance* instance); | 21 explicit ResourceCreationImpl(PluginInstance* instance); |
| 20 virtual ~ResourceCreationImpl(); | 22 virtual ~ResourceCreationImpl(); |
| 21 | 23 |
| 22 // ResourceCreationAPI implementation. | 24 // ResourceCreationAPI implementation. |
| 23 virtual PP_Resource CreateAudio(PP_Instance instance, | 25 virtual PP_Resource CreateAudio(PP_Instance instance, |
| 24 PP_Resource config_id, | 26 PP_Resource config_id, |
| 25 PPB_Audio_Callback audio_callback, | 27 PPB_Audio_Callback audio_callback, |
| 26 void* user_data) OVERRIDE; | 28 void* user_data) OVERRIDE; |
| 27 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; | 29 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 PP_Instance instance) OVERRIDE; | 138 PP_Instance instance) OVERRIDE; |
| 137 | 139 |
| 138 private: | 140 private: |
| 139 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); | 141 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); |
| 140 }; | 142 }; |
| 141 | 143 |
| 142 } // namespace ppapi | 144 } // namespace ppapi |
| 143 } // namespace webkit | 145 } // namespace webkit |
| 144 | 146 |
| 145 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ | 147 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ |
| OLD | NEW |