| 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; |
| 49 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; | 55 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; |
| 50 virtual PP_Resource CreateBuffer(PP_Instance instance, | 56 virtual PP_Resource CreateBuffer(PP_Instance instance, |
| 51 uint32_t size) OVERRIDE; | 57 uint32_t size) OVERRIDE; |
| 52 virtual PP_Resource CreateContext3D(PP_Instance instance, | 58 virtual PP_Resource CreateContext3D(PP_Instance instance, |
| 53 PP_Config3D_Dev config, | 59 PP_Config3D_Dev config, |
| 54 PP_Resource share_context, | 60 PP_Resource share_context, |
| 55 const int32_t* attrib_list) OVERRIDE; | 61 const int32_t* attrib_list) OVERRIDE; |
| 56 virtual PP_Resource CreateContext3DRaw(PP_Instance instance, | 62 virtual PP_Resource CreateContext3DRaw(PP_Instance instance, |
| 57 PP_Config3D_Dev config, | 63 PP_Config3D_Dev config, |
| 58 PP_Resource share_context, | 64 PP_Resource share_context, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 139 |
| 134 virtual bool Send(IPC::Message* msg) OVERRIDE; | 140 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 135 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 141 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 136 | 142 |
| 137 private: | 143 private: |
| 138 // IPC message handlers (called in browser). | 144 // IPC message handlers (called in browser). |
| 139 void OnMsgCreateAudio(PP_Instance instance, | 145 void OnMsgCreateAudio(PP_Instance instance, |
| 140 int32_t sample_rate, | 146 int32_t sample_rate, |
| 141 uint32_t sample_frame_count, | 147 uint32_t sample_frame_count, |
| 142 HostResource* result); | 148 HostResource* result); |
| 149 void OnMsgCreateAudioInput(PP_Instance instance, |
| 150 HostResource* result); |
| 143 void OnMsgCreateGraphics2D(PP_Instance instance, | 151 void OnMsgCreateGraphics2D(PP_Instance instance, |
| 144 const PP_Size& size, | 152 const PP_Size& size, |
| 145 PP_Bool is_always_opaque, | 153 PP_Bool is_always_opaque, |
| 146 HostResource* result); | 154 HostResource* result); |
| 147 void OnMsgCreateImageData(PP_Instance instance, | 155 void OnMsgCreateImageData(PP_Instance instance, |
| 148 int32_t format, | 156 int32_t format, |
| 149 const PP_Size& size, | 157 const PP_Size& size, |
| 150 PP_Bool init_to_zero, | 158 PP_Bool init_to_zero, |
| 151 HostResource* result, | 159 HostResource* result, |
| 152 std::string* image_data_desc, | 160 std::string* image_data_desc, |
| 153 ImageHandle* result_image_handle); | 161 ImageHandle* result_image_handle); |
| 154 | 162 |
| 155 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); | 163 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); |
| 156 }; | 164 }; |
| 157 | 165 |
| 158 } // namespace proxy | 166 } // namespace proxy |
| 159 } // namespace ppapi | 167 } // namespace ppapi |
| 160 | 168 |
| 161 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 169 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
| OLD | NEW |