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 PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 5 #ifndef PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 // ResourceCreationAPI (called in plugin). | 40 // ResourceCreationAPI (called in plugin). |
41 virtual PP_Resource CreateAudio(PP_Instance instance, | 41 virtual PP_Resource CreateAudio(PP_Instance instance, |
42 PP_Resource config_id, | 42 PP_Resource config_id, |
43 PPB_Audio_Callback audio_callback, | 43 PPB_Audio_Callback audio_callback, |
44 void* user_data) OVERRIDE; | 44 void* user_data) OVERRIDE; |
45 virtual PP_Resource CreateAudioConfig(PP_Instance instance, | 45 virtual PP_Resource CreateAudioConfig(PP_Instance instance, |
46 PP_AudioSampleRate sample_rate, | 46 PP_AudioSampleRate sample_rate, |
47 uint32_t sample_frame_count) OVERRIDE; | 47 uint32_t sample_frame_count) OVERRIDE; |
48 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; | 48 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; |
49 virtual PP_Resource CreateAudioInput( | |
50 PP_Instance instance, | |
51 PP_Resource config_id, | |
52 PPB_AudioInput_Callback audio_input_callback, | |
53 void* user_data) OVERRIDE; | |
54 virtual PP_Resource CreateAudioInputTrusted(PP_Instance instance) OVERRIDE; | |
55 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; | 49 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; |
56 virtual PP_Resource CreateBuffer(PP_Instance instance, | 50 virtual PP_Resource CreateBuffer(PP_Instance instance, |
57 uint32_t size) OVERRIDE; | 51 uint32_t size) OVERRIDE; |
58 virtual PP_Resource CreateContext3D(PP_Instance instance, | 52 virtual PP_Resource CreateContext3D(PP_Instance instance, |
59 PP_Config3D_Dev config, | 53 PP_Config3D_Dev config, |
60 PP_Resource share_context, | 54 PP_Resource share_context, |
61 const int32_t* attrib_list) OVERRIDE; | 55 const int32_t* attrib_list) OVERRIDE; |
62 virtual PP_Resource CreateContext3DRaw(PP_Instance instance, | 56 virtual PP_Resource CreateContext3DRaw(PP_Instance instance, |
63 PP_Config3D_Dev config, | 57 PP_Config3D_Dev config, |
64 PP_Resource share_context, | 58 PP_Resource share_context, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 133 |
140 virtual bool Send(IPC::Message* msg) OVERRIDE; | 134 virtual bool Send(IPC::Message* msg) OVERRIDE; |
141 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 135 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
142 | 136 |
143 private: | 137 private: |
144 // IPC message handlers (called in browser). | 138 // IPC message handlers (called in browser). |
145 void OnMsgCreateAudio(PP_Instance instance, | 139 void OnMsgCreateAudio(PP_Instance instance, |
146 int32_t sample_rate, | 140 int32_t sample_rate, |
147 uint32_t sample_frame_count, | 141 uint32_t sample_frame_count, |
148 HostResource* result); | 142 HostResource* result); |
149 void OnMsgCreateAudioInput(PP_Instance instance, | |
150 HostResource* result); | |
151 void OnMsgCreateGraphics2D(PP_Instance instance, | 143 void OnMsgCreateGraphics2D(PP_Instance instance, |
152 const PP_Size& size, | 144 const PP_Size& size, |
153 PP_Bool is_always_opaque, | 145 PP_Bool is_always_opaque, |
154 HostResource* result); | 146 HostResource* result); |
155 void OnMsgCreateImageData(PP_Instance instance, | 147 void OnMsgCreateImageData(PP_Instance instance, |
156 int32_t format, | 148 int32_t format, |
157 const PP_Size& size, | 149 const PP_Size& size, |
158 PP_Bool init_to_zero, | 150 PP_Bool init_to_zero, |
159 HostResource* result, | 151 HostResource* result, |
160 std::string* image_data_desc, | 152 std::string* image_data_desc, |
161 ImageHandle* result_image_handle); | 153 ImageHandle* result_image_handle); |
162 | 154 |
163 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); | 155 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); |
164 }; | 156 }; |
165 | 157 |
166 } // namespace proxy | 158 } // namespace proxy |
167 } // namespace ppapi | 159 } // namespace ppapi |
168 | 160 |
169 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 161 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
OLD | NEW |