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