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

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

Issue 8662014: Pepper: Fix the definition of |PPB_AudioInput_Callback|. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « ppapi/c/dev/ppb_audio_input_dev.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #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/c/trusted/ppb_image_data_trusted.h" 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
10 #include "ppapi/proxy/plugin_dispatcher.h" 10 #include "ppapi/proxy/plugin_dispatcher.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) { 82 PP_Resource ResourceCreationProxy::CreateAudioTrusted(PP_Instance instance) {
83 // Proxied plugins can't created trusted audio devices. 83 // Proxied plugins can't created trusted audio devices.
84 return 0; 84 return 0;
85 } 85 }
86 86
87 PP_Resource ResourceCreationProxy::CreateAudioInput( 87 PP_Resource ResourceCreationProxy::CreateAudioInput(
88 PP_Instance instance, 88 PP_Instance instance,
89 PP_Resource config_id, 89 PP_Resource config_id,
90 PPB_Audio_Callback audio_input_callback, 90 PPB_AudioInput_Callback audio_input_callback,
91 void* user_data) { 91 void* user_data) {
92 return PPB_AudioInput_Proxy::CreateProxyResource(instance, config_id, 92 return PPB_AudioInput_Proxy::CreateProxyResource(instance, config_id,
93 audio_input_callback, 93 audio_input_callback,
94 user_data); 94 user_data);
95 } 95 }
96 96
97 PP_Resource ResourceCreationProxy::CreateAudioInputTrusted( 97 PP_Resource ResourceCreationProxy::CreateAudioInputTrusted(
98 PP_Instance instance) { 98 PP_Instance instance) {
99 // Proxied plugins can't created trusted audio input devices. 99 // Proxied plugins can't created trusted audio input devices.
100 return 0; 100 return 0;
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false); 439 *result_image_handle = dispatcher()->ShareHandleWithRemote(ih, false);
440 #else 440 #else
441 *result_image_handle = ImageData::HandleFromInt(handle); 441 *result_image_handle = ImageData::HandleFromInt(handle);
442 #endif 442 #endif
443 } 443 }
444 } 444 }
445 } 445 }
446 446
447 } // namespace proxy 447 } // namespace proxy
448 } // namespace ppapi 448 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_audio_input_dev.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698