OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" | 10 #include "ppapi/shared_impl/function_group_base.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 PP_Resource config_id, | 29 PP_Resource config_id, |
30 PPB_Audio_Callback audio_callback, | 30 PPB_Audio_Callback audio_callback, |
31 void* user_data) OVERRIDE; | 31 void* user_data) OVERRIDE; |
32 virtual PP_Resource CreateAudioTrusted(PP_Instance instace) OVERRIDE; | 32 virtual PP_Resource CreateAudioTrusted(PP_Instance instace) OVERRIDE; |
33 virtual PP_Resource CreateAudioConfig(PP_Instance instance, | 33 virtual PP_Resource CreateAudioConfig(PP_Instance instance, |
34 PP_AudioSampleRate sample_rate, | 34 PP_AudioSampleRate sample_rate, |
35 uint32_t sample_frame_count) OVERRIDE; | 35 uint32_t sample_frame_count) OVERRIDE; |
36 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; | 36 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; |
37 virtual PP_Resource CreateBuffer(PP_Instance instance, | 37 virtual PP_Resource CreateBuffer(PP_Instance instance, |
38 uint32_t size) OVERRIDE; | 38 uint32_t size) OVERRIDE; |
| 39 virtual PP_Resource CreateContext3D(PP_Instance instance, |
| 40 PP_Config3D_Dev config, |
| 41 PP_Resource share_context, |
| 42 const int32_t* attrib_list) OVERRIDE; |
| 43 virtual PP_Resource CreateContext3DRaw(PP_Instance instance, |
| 44 PP_Config3D_Dev config, |
| 45 PP_Resource share_context, |
| 46 const int32_t* attrib_list) OVERRIDE; |
39 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) OVERRIDE; | 47 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) OVERRIDE; |
40 virtual PP_Resource CreateFileChooser( | 48 virtual PP_Resource CreateFileChooser( |
41 PP_Instance instance, | 49 PP_Instance instance, |
42 const PP_FileChooserOptions_Dev* options) OVERRIDE; | 50 const PP_FileChooserOptions_Dev* options) OVERRIDE; |
43 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE; | 51 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE; |
44 virtual PP_Resource CreateFileRef(PP_Resource file_system, | 52 virtual PP_Resource CreateFileRef(PP_Resource file_system, |
45 const char* path) OVERRIDE; | 53 const char* path) OVERRIDE; |
46 virtual PP_Resource CreateFileSystem(PP_Instance instance, | 54 virtual PP_Resource CreateFileSystem(PP_Instance instance, |
47 PP_FileSystemType_Dev type) OVERRIDE; | 55 PP_FileSystemType_Dev type) OVERRIDE; |
48 virtual PP_Resource CreateFlashMenu(PP_Instance instance, | 56 virtual PP_Resource CreateFlashMenu(PP_Instance instance, |
49 const PP_Flash_Menu* menu_data) OVERRIDE; | 57 const PP_Flash_Menu* menu_data) OVERRIDE; |
50 virtual PP_Resource CreateFlashNetConnector(PP_Instance instance) OVERRIDE; | 58 virtual PP_Resource CreateFlashNetConnector(PP_Instance instance) OVERRIDE; |
51 virtual PP_Resource CreateFontObject( | 59 virtual PP_Resource CreateFontObject( |
52 PP_Instance instance, | 60 PP_Instance instance, |
53 const PP_FontDescription_Dev* description) OVERRIDE; | 61 const PP_FontDescription_Dev* description) OVERRIDE; |
54 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, | 62 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, |
55 const PP_Size& size, | 63 const PP_Size& size, |
56 PP_Bool is_always_opaque) OVERRIDE; | 64 PP_Bool is_always_opaque) OVERRIDE; |
| 65 virtual PP_Resource CreateGraphics3D(PP_Instance instance, |
| 66 PP_Config3D_Dev config, |
| 67 PP_Resource share_context, |
| 68 const int32_t* attrib_list) OVERRIDE; |
57 virtual PP_Resource CreateImageData(PP_Instance instance, | 69 virtual PP_Resource CreateImageData(PP_Instance instance, |
58 PP_ImageDataFormat format, | 70 PP_ImageDataFormat format, |
59 const PP_Size& size, | 71 const PP_Size& size, |
60 PP_Bool init_to_zero) OVERRIDE; | 72 PP_Bool init_to_zero) OVERRIDE; |
61 virtual PP_Resource CreateSurface3D(PP_Instance instance, | 73 virtual PP_Resource CreateSurface3D(PP_Instance instance, |
62 PP_Config3D_Dev config, | 74 PP_Config3D_Dev config, |
63 const int32_t* attrib_list) OVERRIDE; | 75 const int32_t* attrib_list) OVERRIDE; |
| 76 virtual PP_Resource CreateTransport(PP_Instance instance, |
| 77 const char* name, |
| 78 const char* proto) OVERRIDE; |
64 virtual PP_Resource CreateURLLoader(PP_Instance instance) OVERRIDE; | 79 virtual PP_Resource CreateURLLoader(PP_Instance instance) OVERRIDE; |
65 virtual PP_Resource CreateURLRequestInfo(PP_Instance instance) OVERRIDE; | 80 virtual PP_Resource CreateURLRequestInfo(PP_Instance instance) OVERRIDE; |
66 virtual PP_Resource CreateVideoDecoder(PP_Instance instance) OVERRIDE; | 81 virtual PP_Resource CreateVideoDecoder(PP_Instance instance) OVERRIDE; |
67 virtual PP_Resource CreateVideoLayer(PP_Instance instance, | 82 virtual PP_Resource CreateVideoLayer(PP_Instance instance, |
68 PP_VideoLayerMode_Dev mode) OVERRIDE; | 83 PP_VideoLayerMode_Dev mode) OVERRIDE; |
69 | 84 |
70 private: | 85 private: |
71 PluginInstance* instance_; | 86 PluginInstance* instance_; |
72 | 87 |
73 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); | 88 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); |
74 }; | 89 }; |
75 | 90 |
76 } // namespace ppapi | 91 } // namespace ppapi |
77 } // namespace webkit | 92 } // namespace webkit |
78 | 93 |
79 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ | 94 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ |
OLD | NEW |