Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.h

Issue 10168026: Delete FunctionGroupBase from Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/shared_impl/function_group_base.h"
11 #include "ppapi/thunk/resource_creation_api.h" 10 #include "ppapi/thunk/resource_creation_api.h"
12 11
13 namespace webkit { 12 namespace webkit {
14 namespace ppapi { 13 namespace ppapi {
15 14
16 class PluginInstance; 15 class PluginInstance;
17 16
18 class ResourceCreationImpl : public ::ppapi::FunctionGroupBase, 17 class ResourceCreationImpl : public ::ppapi::thunk::ResourceCreationAPI {
19 public ::ppapi::thunk::ResourceCreationAPI {
20 public: 18 public:
21 explicit ResourceCreationImpl(PluginInstance* instance); 19 explicit ResourceCreationImpl(PluginInstance* instance);
22 virtual ~ResourceCreationImpl(); 20 virtual ~ResourceCreationImpl();
23 21
24 // FunctionGroupBase implementation.
25 virtual ::ppapi::thunk::ResourceCreationAPI* AsResourceCreationAPI();
26
27 // ResourceCreationAPI implementation. 22 // ResourceCreationAPI implementation.
28 virtual PP_Resource CreateAudio(PP_Instance instance, 23 virtual PP_Resource CreateAudio(PP_Instance instance,
29 PP_Resource config_id, 24 PP_Resource config_id,
30 PPB_Audio_Callback audio_callback, 25 PPB_Audio_Callback audio_callback,
31 void* user_data) OVERRIDE; 26 void* user_data) OVERRIDE;
32 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; 27 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE;
33 virtual PP_Resource CreateAudioConfig(PP_Instance instance, 28 virtual PP_Resource CreateAudioConfig(PP_Instance instance,
34 PP_AudioSampleRate sample_rate, 29 PP_AudioSampleRate sample_rate,
35 uint32_t sample_frame_count) OVERRIDE; 30 uint32_t sample_frame_count) OVERRIDE;
36 virtual PP_Resource CreateAudioInput0_1( 31 virtual PP_Resource CreateAudioInput0_1(
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 PP_Instance instance) OVERRIDE; 124 PP_Instance instance) OVERRIDE;
130 125
131 private: 126 private:
132 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); 127 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl);
133 }; 128 };
134 129
135 } // namespace ppapi 130 } // namespace ppapi
136 } // namespace webkit 131 } // namespace webkit
137 132
138 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ 133 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/resource_creation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698