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

Side by Side Diff: ppapi/proxy/resource_creation_proxy.cc

Issue 22320004: Add a new parameter |latency| to PPB_Audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 #include "ppapi/proxy/resource_creation_proxy.h" 5 #include "ppapi/proxy/resource_creation_proxy.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/pp_size.h" 8 #include "ppapi/c/pp_size.h"
9 #include "ppapi/proxy/audio_input_resource.h" 9 #include "ppapi/proxy/audio_input_resource.h"
10 #include "ppapi/proxy/connection.h" 10 #include "ppapi/proxy/connection.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "ppapi/proxy/url_loader_resource.h" 44 #include "ppapi/proxy/url_loader_resource.h"
45 #include "ppapi/proxy/url_request_info_resource.h" 45 #include "ppapi/proxy/url_request_info_resource.h"
46 #include "ppapi/proxy/url_response_info_resource.h" 46 #include "ppapi/proxy/url_response_info_resource.h"
47 #include "ppapi/proxy/video_capture_resource.h" 47 #include "ppapi/proxy/video_capture_resource.h"
48 #include "ppapi/proxy/video_destination_resource.h" 48 #include "ppapi/proxy/video_destination_resource.h"
49 #include "ppapi/proxy/video_source_resource.h" 49 #include "ppapi/proxy/video_source_resource.h"
50 #include "ppapi/proxy/websocket_resource.h" 50 #include "ppapi/proxy/websocket_resource.h"
51 #include "ppapi/shared_impl/api_id.h" 51 #include "ppapi/shared_impl/api_id.h"
52 #include "ppapi/shared_impl/host_resource.h" 52 #include "ppapi/shared_impl/host_resource.h"
53 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 53 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
54 #include "ppapi/shared_impl/ppb_audio_shared.h"
54 #include "ppapi/shared_impl/ppb_input_event_shared.h" 55 #include "ppapi/shared_impl/ppb_input_event_shared.h"
55 #include "ppapi/shared_impl/ppb_resource_array_shared.h" 56 #include "ppapi/shared_impl/ppb_resource_array_shared.h"
56 #include "ppapi/shared_impl/var.h" 57 #include "ppapi/shared_impl/var.h"
57 #include "ppapi/thunk/enter.h" 58 #include "ppapi/thunk/enter.h"
58 #include "ppapi/thunk/ppb_image_data_api.h" 59 #include "ppapi/thunk/ppb_image_data_api.h"
59 60
60 using ppapi::thunk::ResourceCreationAPI; 61 using ppapi::thunk::ResourceCreationAPI;
61 62
62 namespace ppapi { 63 namespace ppapi {
63 namespace proxy { 64 namespace proxy {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 PP_TimeTicks time_stamp, 188 PP_TimeTicks time_stamp,
188 uint32_t modifiers, 189 uint32_t modifiers,
189 const PP_FloatPoint* wheel_delta, 190 const PP_FloatPoint* wheel_delta,
190 const PP_FloatPoint* wheel_ticks, 191 const PP_FloatPoint* wheel_ticks,
191 PP_Bool scroll_by_page) { 192 PP_Bool scroll_by_page) {
192 return PPB_InputEvent_Shared::CreateWheelInputEvent( 193 return PPB_InputEvent_Shared::CreateWheelInputEvent(
193 OBJECT_IS_PROXY, instance, time_stamp, modifiers, 194 OBJECT_IS_PROXY, instance, time_stamp, modifiers,
194 wheel_delta, wheel_ticks, scroll_by_page); 195 wheel_delta, wheel_ticks, scroll_by_page);
195 } 196 }
196 197
198 PP_Resource ResourceCreationProxy::CreateAudio1_0(
199 PP_Instance instance,
200 PP_Resource config_id,
201 PPB_Audio_Callback_1_0 audio_callback,
202 void* user_data) {
203 return PPB_Audio_Proxy::CreateProxyResource(
204 instance, config_id, audio_callback, user_data);
205 }
206
197 PP_Resource ResourceCreationProxy::CreateAudio( 207 PP_Resource ResourceCreationProxy::CreateAudio(
198 PP_Instance instance, 208 PP_Instance instance,
199 PP_Resource config_id, 209 PP_Resource config_id,
200 PPB_Audio_Callback audio_callback, 210 PPB_Audio_Callback audio_callback,
201 void* user_data) { 211 void* user_data) {
202 return PPB_Audio_Proxy::CreateProxyResource(instance, config_id, 212 return PPB_Audio_Proxy::CreateProxyResource(
203 audio_callback, user_data); 213 instance, config_id, audio_callback, user_data);
204 } 214 }
205 215
206 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) { 216 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) {
207 // Proxied plugins can't create trusted audio devices. 217 // Proxied plugins can't create trusted audio devices.
208 return 0; 218 return 0;
209 } 219 }
210 220
211 PP_Resource ResourceCreationProxy::CreateAudioConfig( 221 PP_Resource ResourceCreationProxy::CreateAudioConfig(
212 PP_Instance instance, 222 PP_Instance instance,
213 PP_AudioSampleRate sample_rate, 223 PP_AudioSampleRate sample_rate,
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 464 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
455 return false; 465 return false;
456 } 466 }
457 467
458 Connection ResourceCreationProxy::GetConnection() { 468 Connection ResourceCreationProxy::GetConnection() {
459 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 469 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
460 } 470 }
461 471
462 } // namespace proxy 472 } // namespace proxy
463 } // namespace ppapi 473 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698