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